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

例外

readernull

适用于