WSTrustFeb2005RequestSerializer.ReadXml(XmlReader, WSTrustSerializationContext) 方法
定义
从 XmlReader 对象到 RequestSecurityToken 对象反序列化 RST。Deserializes the RST from an XmlReader object to a RequestSecurityToken object.
public:
override System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ ReadXml(System::Xml::XmlReader ^ reader, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public override System.IdentityModel.Protocols.WSTrust.RequestSecurityToken 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.RequestSecurityToken
Public Overrides Function ReadXml (reader As XmlReader, context As WSTrustSerializationContext) As RequestSecurityToken
参数
- reader
- XmlReader
RST 的一个 XML 读取器。An XML reader over the RST.
- context
- WSTrustSerializationContext
一个 WSTrustSerializationContext,包含当前的序列化上下文。A WSTrustSerializationContext that contains the current serialization context.
返回
如果序列化成功,则为 RequestSecurityToken 对象。A RequestSecurityToken object if the deserialization was successful.
例外
分析 RST 时出现错误。There was an error parsing the RST.