WSTrustResponseSerializer.ReadXml(XmlReader, WSTrustSerializationContext) 方法
定义
在派生类中重写时,对从 XmlReader 对象到 RequestSecurityTokenResponse 对象的 RSTR 进行反序列化。When overridden in a derived class, deserializes the RSTR from an XmlReader object to a RequestSecurityTokenResponse object.
public:
abstract System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ ReadXml(System::Xml::XmlReader ^ reader, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public abstract System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse ReadXml (System.Xml.XmlReader reader, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
abstract member ReadXml : System.Xml.XmlReader * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse
Public MustOverride 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 对象。A RequestSecurityTokenResponse object if the deserialization was successful.