System.Security.Principal.WindowsIdentity.IsAnonymous Property

Gets a value that indicates whether the user account is identified as an anonymous account by the system.

Syntax

public virtual bool IsAnonymous { get; }

Value

True if the current identity is anonymous, false otherwise.

Remarks

The WindowsIdentity.IsAnonymous property detects both the Windows anonymous identity and the anonymous identity that is returned by the WindowsIdentity.GetAnonymous method.

Anonymous accounts are typically encountered only from within ASP.NET-based applications when anonymous access is allowed by Internet Information Services (IIS).

Requirements

Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0