WSTrustFeb2005ResponseSerializer.CanRead(XmlReader) 方法

定义

检查该指定的 XML 读取器是否通过命名空间“http://schemas.xmlsoap.org/ws/2005/02/trust”放置于 RequestSecurityTokenResponse 元素。Checks if the specified XML reader is positioned at a RequestSecurityTokenResponse element with namespace "http://schemas.xmlsoap.org/ws/2005/02/trust".

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对象。The XmlReader object from which to read.

返回

Boolean

如果读取器通过命名空间“http://schemas.xmlsoap.org/ws/2005/02/trust”放置于 RequestSecurityTokenResponse 元素,则为 true;否则为 falsetrue if the reader is positioned at a RequestSecurityTokenResponse element with namespace "http://schemas.xmlsoap.org/ws/2005/02/trust"; otherwise, false.

例外

readernullreader is null.

适用于