X500DistinguishedNameBuilder.AddEmailAddress(String) Method

Definition

Adds an email address attribute.

public:
 void AddEmailAddress(System::String ^ emailAddress);
public void AddEmailAddress (string emailAddress);
member this.AddEmailAddress : string -> unit
Public Sub AddEmailAddress (emailAddress As String)

Parameters

emailAddress
String

The email address to add.

Exceptions

emailAddress is null.

emailAddress is empty or exceeds 255 characters.

Remarks

This encodes an attribute with the OID 1.2.840.113549.1.9.1 as an IA5String.

Applies to