X500RelativeDistinguishedName.GetSingleElementValue 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.
Gets the textual representation of the value for the Relative Distinguished Name (RDN), when the RDN only contains one attribute.
public:
System::String ^ GetSingleElementValue();
public string? GetSingleElementValue ();
member this.GetSingleElementValue : unit -> string
Public Function GetSingleElementValue () As String
Returns
The decoded text representing the attribute value.
If the attribute value is an OCTET STRING
, or other non-text data type, this method returns null
.
Exceptions
The attribute is identified as a textual value, but the value did not successfully decode.
The Relative Distinguished Name has multiple attributes (HasMultipleElements
is true
).