Reads an InformationCard from a stream.
Namespace: Microsoft.IdentityModel.Protocols.WSIdentity
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As InformationCardSerializer
Dim stream As Stream
Dim returnValue As InformationCard

returnValue = instance.ReadCard(stream)

Syntax

Visual Basic
Public Function ReadCard ( _
		stream As Stream _
) As InformationCard
C#
public InformationCard ReadCard (
		Stream stream
)
C++
public:
InformationCard^ ReadCard (
		Stream^ stream
)
J#
public InformationCard ReadCard (
		Stream stream
)
JScript
public function ReadCard (
		stream : Stream
) : InformationCard

Parameters

stream

Stream from which the information card is read.

Return Value

An InformationCard instance.

Exceptions

Exception type Condition
ArgumentNullException

The input 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