Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​X509Certificates.​X500DistinguishedName

Assembly: System.Security.Cryptography

Inheritance: object → AsnEncodedData → X500DistinguishedName

Represents the distinguished name of an X509 certificate. This class cannot be inherited.

Properties

public string
Name
Gets the comma-delimited distinguished name from an X500 certificate.
public Oid
Oid
Gets or sets the <see cref="T:System.Security.Cryptography.Oid" /> value for an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
public byte[]
RawData
Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.

Methods

public string
Decode​(X500DistinguishedNameFlags flag)
flag A bitwise combination of the enumeration values that specify the characteristics of the distinguished name.
Returns The decoded distinguished name.
Decodes a distinguished name using the characteristics specified by the <paramref name="flag" /> parameter.
EnumerateRelativeDistinguishedNames​(bool reversed = True)
reversed <see langword="true" /> to enumerate in the order used by <see cref="P:System.Security.Cryptography.X509Certificates.X500DistinguishedName.Name" /> ; <see langword="false" /> to enumerate in the declared order.
Returns An enumerator that iterates over the relative distinguished names in the X.500 Distinguished Name.
Iterates over the RelativeDistinguishedName values within this distinguished name value.
public string
Format​(bool multiLine)
multiLine <see langword="true" /> if the return string should contain carriage returns; otherwise, <see langword="false" /> .
Returns A formatted string that represents the X500 distinguished name.
Returns a formatted version of an X500 distinguished name for printing or for output to a text window or to a console.
public void
CopyFrom​(AsnEncodedData asnEncodedData)
Inherited from AsnEncodedData
asnEncodedData The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object to base the new object on.
Copies information from an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object