Επεξεργασία

Κοινή χρήση μέσω


X500DistinguishedNameBuilder.AddCountryOrRegion(String) Method

Definition

Adds a country or region attribute.

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

Parameters

twoLetterCode
String

The two letter code of the country or region.

Exceptions

twoLetterCode is null.

twoLetterCode is not exactly two characters, or contains characters that are not A through Z.

Remarks

This encodes an attribute with the OID 2.5.4.6 as a PrintableString.

twoLetterCode should be a two letter ISO 3166 alpha-2 code, and will be normalized to upper case characters.

Applies to