This documentation is archived and is not being maintained.

WindowsIdentity.GetAnonymous Method

Returns a WindowsIdentity object that represents an anonymous Windows user.

[Visual Basic]
Public Shared Function GetAnonymous() As WindowsIdentity
[C#]
public static WindowsIdentity GetAnonymous();
[C++]
public: static WindowsIdentity* GetAnonymous();
[JScript]
public static function GetAnonymous() : WindowsIdentity;

Return Value

A WindowsIdentity object that represents an anonymous Windows user.

Requirements

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

Show: