Redigera

Dela via


X500RelativeDistinguishedName.GetSingleElementValue Method

Definition

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).

Applies to