Populates the specified T:System.Runtime.Serialization.SerializationInfo with the serialization data for the WindowsClaimsIdentity
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim info As SerializationInfo
Dim context As StreamingContext

Me.GetObjectData(info, context)

Syntax

Visual Basic
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags:=SecurityPermissionFlag.SerializationFormatter)> _
Protected Overridable Sub GetObjectData ( _
		info As SerializationInfo, _
		context As StreamingContext _
)
C#
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] 
protected virtual void GetObjectData (
		SerializationInfo info,
		StreamingContext context
)
C++
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags=SecurityPermissionFlag::SerializationFormatter)] 
protected:
virtual void GetObjectData (
		SerializationInfo^ info, 
		StreamingContext context
)
J#
/** @attribute SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter) */ 
protected void GetObjectData (
		SerializationInfo info, 
		StreamingContext context
)
JScript
protected function GetObjectData (
		info : SerializationInfo, 
		context : StreamingContext
)

Parameters

info

The serialization information stream to write to. Satisfies ISerializable contract.

context

Context for serialization. Can be null.

Exceptions

Exception type Condition

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