语言

WSTrust13ResponseSerializer.CanRead(XmlReader) 方法

定义

检查指定的 XML 读取器是否定位在 RequestSecurityTokenResponse 或具有命名空间“http://docs.oasis-open.org/ws-sx/ws-trust/200512" 的 RequestSecurityTokenResponseCollection 元素上。

public:
 override bool CanRead(System::Xml::XmlReader ^ reader);
public override bool CanRead(System.Xml.XmlReader reader);
override this.CanRead : System.Xml.XmlReader -> bool
Public Overrides Function CanRead (reader As XmlReader) As Boolean

参数

reader
XmlReader

要 XmlReader 从中读取的对象。

返回

true 如果读取器位于 RequestSecurityTokenResponse 或具有命名空间“http://docs.oasis-open.org/ws-sx/ws-trust/200512"的 RequestSecurityTokenResponseCollection 元素处,则为否则,为 false.

例外

reader 是 null。

适用于