This documentation is archived and is not being maintained.

IdentityType Enumeration

Specifies the format of the identity.

Namespace:  System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public enum class IdentityType

Member nameDescription
SamAccountNameThe identity is a Security Account Manager (SAM) name.
NameThe identity is a name.
UserPrincipalNameThe identity is a User Principal Name (UPN).
DistinguishedNameThe identity is a Distinguished Name (DN).
SidThe identity is a Security Identifier (SID) in Security Descriptor Definition Language (SDDL) format.
GuidThe identity is a Globally Unique Identifier (GUID).

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5