WindowsIdentity.WindowsIdentity(SerializationInfo, StreamingContext) Constructor

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
)
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: