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