WindowsIdentity Constructor (SerializationInfo, StreamingContext)

Initializes a new instance of the WindowsIdentity class for the user represented by information in a SerializationInfo stream.

Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)

public:
WindowsIdentity (
	SerializationInfo^ info, 
	StreamingContext context
)
public WindowsIdentity (
	SerializationInfo info, 
	StreamingContext context
)
public function WindowsIdentity (
	info : SerializationInfo, 
	context : StreamingContext
)

Parameters

info

The SerializationInfo containing the account information for the user.

context

A StreamingContext that indicates the stream characteristics.

Exception typeCondition

NotSupportedException

A WindowsIdentity cannot be serialized across processes.

SecurityException

The caller does not have the correct permissions.

-or-

A Win32 error occurred.

Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show: