System.Security.Cryptography.X509Certificates.X509NameType Enumeration

Specifies the type of name the X509 certificate contains.

Syntax

public enum X509NameType

Remarks

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 X509Certificate2.GetNameInfo(X509NameType, bool).

Members

Member NameDescription
DnsFromAlternativeName

The 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 X509NameType.DnsName value.

DnsName

The DNS name associated with the alternative name of either the subject or issuer of an X509 certificate.

EmailName

The email address of the subject or issuer associated of an X509 certificate.

SimpleName

The simple name of a subject or issuer of an X509 certificate.

UpnName

The UPN name of the subject or issuer of an X509 certificate.

UrlName

The URL address associated with the alternative name of either the subject or issuer of an X509 certificate.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0