X500DistinguishedNameBuilder.AddCountryOrRegion(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.