WSTrust13ResponseSerializer.ReadXml(XmlReader, WSTrustSerializationContext) 方法

定义

XmlReader 对象到 RequestSecurityTokenResponse 对象反序列化 RSTR。Deserializes the RSTR from an XmlReader object to a RequestSecurityTokenResponse object.

public:
 override System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ ReadXml(System::Xml::XmlReader ^ reader, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public override System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse ReadXml (System.Xml.XmlReader reader, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
override this.ReadXml : System.Xml.XmlReader * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
Public Overrides Function ReadXml (reader As XmlReader, context As WSTrustSerializationContext) As RequestSecurityTokenResponse

参数

reader
XmlReader

XML 读取器上的 RSTR。The XML reader over the RSTR.

context
WSTrustSerializationContext

一个 WSTrustSerializationContext,包含当前的序列化上下文。A WSTrustSerializationContext that contains the current serialization context.

返回

RequestSecurityTokenResponse

如果序列化成功,则为 RequestSecurityTokenResponse 对象。A RequestSecurityTokenResponse object if the deserialization was successful.

例外

readernullreader is null.

-or- contextnullcontext is null.

适用于