X500DistinguishedNameBuilder.AddStateOrProvinceName(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 state or province name attribute.
public:
void AddStateOrProvinceName(System::String ^ stateOrProvinceName);
public void AddStateOrProvinceName (string stateOrProvinceName);
member this.AddStateOrProvinceName : string -> unit
Public Sub AddStateOrProvinceName (stateOrProvinceName As String)
Parameters
- stateOrProvinceName
- String
The state or province name to add.
Exceptions
stateOrProvinceName
is null
.
stateOrProvinceName
is empty.
Remarks
This encodes an attribute with the OID 2.5.4.8 as a UTF8String.
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.