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.​X500DistinguishedNameBuilder

Assembly: System.Security.Cryptography

Inheritance: object → X500DistinguishedNameBuilder

Facilitates building a distinguished name for an X.509 certificate.

Methods

public void
Add​(Oid oid, string value, Nullable`1 stringEncodingType = null)
public void
Add​(string oidValue, string value, Nullable`1 stringEncodingType = null)
public void
AddCommonName​(string commonName)
commonName The common name to add.
Adds a common name attribute.
public void
AddCountryOrRegion​(string twoLetterCode)
twoLetterCode The two letter code of the country or region.
Adds a country or region attribute.
public void
AddDomainComponent​(string domainComponent)
domainComponent The domain component to add.
Adds a domain component attribute.
public void
AddEmailAddress​(string emailAddress)
emailAddress The email address to add.
Adds an email address attribute.
public void
AddLocalityName​(string localityName)
localityName The locality name to add.
Adds a locality name attribute.
public void
AddOrganizationalUnitName​(string organizationalUnitName)
organizationalUnitName The organizational unit name to add.
Adds an organizational unit name attribute.
public void
AddOrganizationName​(string organizationName)
organizationName The organization name to add.
Adds an organization name attribute.
public void
AddStateOrProvinceName​(string stateOrProvinceName)
stateOrProvinceName The state or province name to add.
Adds a state or province name attribute.
Build​()
Returns An <see cref="T:System.Security.Cryptography.X509Certificates.X500DistinguishedName" /> that represents the encoded attributes.
Builds an <see cref="T:System.Security.Cryptography.X509Certificates.X500DistinguishedName" /> that represents the encoded attributes.
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