Edit

Share via


WSTrust13RequestSerializer.ReadXml Method

Definition

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

Parameters

reader
XmlReader

An XML reader over the RST.

context
WSTrustSerializationContext

A WSTrustSerializationContext that contains the current serialization context.

Returns

A RequestSecurityToken object if the deserialization was successful.

Exceptions

reader is null.

-or-

context is null.

There was an error parsing the RST.

Applies to