X500RelativeDistinguishedName.GetSingleElementValue Metoda

Definicja

Pobiera tekstową reprezentację wartości względnej nazwy wyróżniającej (RDN), gdy nazwa RDN zawiera tylko jeden atrybut.

public:
 System::String ^ GetSingleElementValue();
public string? GetSingleElementValue ();
member this.GetSingleElementValue : unit -> string
Public Function GetSingleElementValue () As String

Zwraca

Zdekodowany tekst reprezentujący wartość atrybutu. Jeśli wartość atrybutu jest typem OCTET STRINGdanych innym niż tekst, ta metoda zwraca wartość null.

Wyjątki

Atrybut jest identyfikowany jako wartość tekstowa, ale wartość nie została pomyślnie zdekodowana.

Względna nazwa wyróżniająca ma wiele atrybutów (HasMultipleElements to true).

Dotyczy