X500DistinguishedNameBuilder.AddCountryOrRegion(String) 方法

定义

添加国家或地区属性。

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

参数

twoLetterCode
String

国家或地区的两个字母代码。

例外

twoLetterCodenull

twoLetterCode 不完全是两个字符,或者包含不是 A 到 Z 的字符。

注解

这会使用 OID 2.5.4.6 作为 PrintableString 对属性进行编码。

twoLetterCode 应为两个字母 ISO 3166 alpha-2 代码,并将规范化为大写字符。

适用于