Reads an informationCard from a given XmlReader.
Namespace: Microsoft.IdentityModel.Protocols.WSIdentity
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As InformationCardSerializer
Dim reader As XmlReader
Dim signingTokenResolver As SecurityTokenResolver
Dim returnValue As InformationCard

returnValue = instance.ReadCard(reader, signingTokenResolver)

Syntax

Visual Basic
Public Function ReadCard ( _
		reader As XmlReader, _
		signingTokenResolver As SecurityTokenResolver _
) As InformationCard
C#
public InformationCard ReadCard (
		XmlReader reader,
		SecurityTokenResolver signingTokenResolver
)
C++
public:
InformationCard^ ReadCard (
		XmlReader^ reader, 
		SecurityTokenResolver^ signingTokenResolver
)
J#
public InformationCard ReadCard (
		XmlReader reader, 
		SecurityTokenResolver signingTokenResolver
)
JScript
public function ReadCard (
		reader : XmlReader, 
		signingTokenResolver : SecurityTokenResolver
) : InformationCard

Parameters

reader

XmlReader from which the InformationCard is read.

signingTokenResolver

Token Resolver used to resolver the signing token.

Return Value

An InformationCard instance.

Exceptions

Exception type Condition
ArgumentNullException

The input parameter is null.

InformationCardException

The XmlReader is not well formed.

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