System.Security.Principal.IIdentity Interface

Assembly: Mscorlib.dll
Namespace: System.Security.Principal
Summary
Defines the basic functionality of an identity object.
C# Syntax:
public interface IIdentity
Remarks
An identity object represents the user on whose behalf the code is running.
See also:
System.Security.Principal Namespace

System.Security.Principal.IIdentity Member List:

Public Properties
AuthenticationType Read-only

Gets the type of authentication used.
IsAuthenticated Read-only

Gets a value that indicates whether the user has been authenticated.
Name Read-only

Gets the name of the current user.

System.Security.Principal.IIdentity Member Details

Property: AuthenticationType (read-only)
Summary
Gets the type of authentication used.
C# Syntax:
string AuthenticationType {get;}
Remarks
The authentication type is passed to the common language runtime by the operating system or by another authentication provider. Basic authentication, NTLM, Kerberos, and Passport are examples of authentication types.

Return to top


Property: IsAuthenticated (read-only)
Summary
Gets a value that indicates whether the user has been authenticated.
C# Syntax:
bool IsAuthenticated {get;}

Return to top


Property: Name (read-only)
Summary
Gets the name of the current user.
C# Syntax:
string Name {get;}
Remarks
The user name is passed to the common language runtime by the operating system or other authentication provider (such as ASP.NET).

IIdentity.Name is typically set to the empty string ("") for an unauthenticated entity, but can take other values.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.