Deserializes the RST from the XmlReader to a RequestSecurityToken object.
Namespace: Microsoft.IdentityModel.Protocols.WSTrust
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As WSTrustFeb2005RequestSerializer
Dim reader As XmlReader
Dim context As WSTrustSerializationContext
Dim returnValue As RequestSecurityToken

returnValue = instance.ReadXml(reader, context)

Syntax

Visual Basic
Public Overrides Function ReadXml ( _
		reader As XmlReader, _
		context As WSTrustSerializationContext _
) As RequestSecurityToken
C#
public override RequestSecurityToken ReadXml (
		XmlReader reader,
		WSTrustSerializationContext context
)
C++
public:
virtual RequestSecurityToken^ ReadXml (
		XmlReader^ reader, 
		WSTrustSerializationContext^ context
) override
J#
public RequestSecurityToken ReadXml (
		XmlReader reader, 
		WSTrustSerializationContext context
)
JScript
public override function ReadXml (
		reader : XmlReader, 
		context : WSTrustSerializationContext
) : RequestSecurityToken

Parameters

reader

XML reader over the RST

context

Current Serialization context.

Return Value

RequestSecurityToken object if the deserialization was successful

Exceptions

Exception type Condition
WSTrustSerializationException

There was an error parsing the RST

ArgumentNullException

The reader or context parameter is null

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also