Editar

Compartilhar via


X500DistinguishedNameBuilder.Add Method

Definition

Overloads

Add(Oid, String, Nullable<UniversalTagNumber>)

Adds a Relative Distinguished Name attribute identified by an OID.

Add(String, String, Nullable<UniversalTagNumber>)

Adds a Relative Distinguished Name attribute identified by an OID.

Add(Oid, String, Nullable<UniversalTagNumber>)

Source:
X500DistinguishedNameBuilder.cs
Source:
X500DistinguishedNameBuilder.cs
Source:
X500DistinguishedNameBuilder.cs

Adds a Relative Distinguished Name attribute identified by an OID.

public void Add (System.Security.Cryptography.Oid oid, string value, System.Formats.Asn1.UniversalTagNumber? stringEncodingType = default);
member this.Add : System.Security.Cryptography.Oid * string * Nullable<System.Formats.Asn1.UniversalTagNumber> -> unit
Public Sub Add (oid As Oid, value As String, Optional stringEncodingType As Nullable(Of UniversalTagNumber) = Nothing)

Parameters

oid
Oid

The OID of the attribute.

value
String

The value of the attribute.

stringEncodingType
Nullable<UniversalTagNumber>

The encoding type to use when encoding the value in to the attribute.

Exceptions

oid or value is null.

oid does not contain a valid OID.

-or-

stringEncodingType is not a type for character strings.

-or-

value is not encodable as defined by stringEncodingType.

Applies to

Add(String, String, Nullable<UniversalTagNumber>)

Source:
X500DistinguishedNameBuilder.cs
Source:
X500DistinguishedNameBuilder.cs
Source:
X500DistinguishedNameBuilder.cs

Adds a Relative Distinguished Name attribute identified by an OID.

public void Add (string oidValue, string value, System.Formats.Asn1.UniversalTagNumber? stringEncodingType = default);
member this.Add : string * string * Nullable<System.Formats.Asn1.UniversalTagNumber> -> unit
Public Sub Add (oidValue As String, value As String, Optional stringEncodingType As Nullable(Of UniversalTagNumber) = Nothing)

Parameters

oidValue
String

The OID of the attribute.

value
String

The value of the attribute.

stringEncodingType
Nullable<UniversalTagNumber>

The encoding type to use when encoding the value in to the attribute.

Exceptions

oidValue or value is null.

oidValue is an empty string or not a valid OID.

-or-

stringEncodingType is not a type for character strings.

-or-

value is not encodable as defined by stringEncodingType.

Applies to