Export (0) Print
Expand All

WindowsIdentity Constructor

.NET Framework 1.1

Initializes a new instance of the WindowsIdentity class.

Overload List

Initializes a new instance of the WindowsIdentity class for the user represented by the specified Windows account token.

[Visual Basic] Public Sub New(IntPtr)
[C#] public WindowsIdentity(IntPtr);
[C++] public: WindowsIdentity(IntPtr);
[JScript] public function WindowsIdentity(IntPtr);

Initializes a new instance of the WindowsIdentity class for the user represented by the specified User Principal Name (UPN).

[Visual Basic] Public Sub New(String)
[C#] public WindowsIdentity(string);
[C++] public: WindowsIdentity(String*);
[JScript] public function WindowsIdentity(String);

Initializes a new instance of the WindowsIdentity class for the user represented by the specified Windows account token and the specified authentication type.

[Visual Basic] Public Sub New(IntPtr, String)
[C#] public WindowsIdentity(IntPtr, string);
[C++] public: WindowsIdentity(IntPtr, String*);
[JScript] public function WindowsIdentity(IntPtr, String);

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

[Visual Basic] Public Sub New(SerializationInfo, StreamingContext)
[C#] public WindowsIdentity(SerializationInfo, StreamingContext);
[C++] public: WindowsIdentity(SerializationInfo*, StreamingContext);
[JScript] public function WindowsIdentity(SerializationInfo, StreamingContext);

Initializes a new instance of the WindowsIdentity class for the user represented by the specified User Principal Name (UPN) and the specified authentication type.

[Visual Basic] Public Sub New(String, String)
[C#] public WindowsIdentity(string, string);
[C++] public: WindowsIdentity(String*, String*);
[JScript] public function WindowsIdentity(String, String);

Initializes a new instance of the WindowsIdentity class for the user represented by the specified Windows account token, the specified authentication type, and the specified Windows account type.

[Visual Basic] Public Sub New(IntPtr, String, WindowsAccountType)
[C#] public WindowsIdentity(IntPtr, string, WindowsAccountType);
[C++] public: WindowsIdentity(IntPtr, String*, WindowsAccountType);
[JScript] public function WindowsIdentity(IntPtr, String, WindowsAccountType);

Initializes a new instance of the WindowsIdentity class for the user represented by the specified Windows account token, the specified authentication type, the specified Windows account type, and the specified authentication status.

[Visual Basic] Public Sub New(IntPtr, String, WindowsAccountType, Boolean)
[C#] public WindowsIdentity(IntPtr, string, WindowsAccountType, bool);
[C++] public: WindowsIdentity(IntPtr, String*, WindowsAccountType, bool);
[JScript] public function WindowsIdentity(IntPtr, String, WindowsAccountType, Boolean);

See Also

WindowsIdentity Class | WindowsIdentity Members | System.Security.Principal Namespace

Show:
© 2014 Microsoft