X509NameType Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Specifies the type of name the X509 certificate contains.

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in system.dll)

'Declaration
Public Enumeration X509NameType
'Usage
Dim instance As X509NameType

public enum X509NameType
public enum X509NameType

 Member nameDescription
DnsFromAlternativeNameThe DNS name associated with the alternative name of either the subject or the issuer of an X.509 certificate. This value is equivalent to the DnsName value. 
DnsNameThe DNS name associated with the alternative name of either the subject or issuer of an X509 certificate. 
EmailNameThe email address of the subject or issuer associated of an X509 certificate. 
SimpleNameThe simple name of a subject or issuer of an X509 certificate. 
UpnNameThe UPN name of the subject or issuer of an X509 certificate. 
UrlNameThe URL address associated with the alternative name of either the subject or issuer of an X509 certificate. 

The name type can be a simple name, an email address, a User Principal Name (UPN), a Domain Name System (DNS) name or a URL. An X509 certificate can have one or more of these names. You can obtain the name of a certificate using the method GetNameInfo.

The following example opens the current user certificate store, selects only active certificates, then allows the user to select one or more certificates. The example then writes certificate information to the console.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: