SecurityTokenRequirement.GetProperty<TValue>(String) Metoda

Definicja

Pobiera określoną właściwość dla bieżącego SecurityTokenRequirement wystąpienia.

public:
generic <typename TValue>
 TValue GetProperty(System::String ^ propertyName);
public:
generic <typename TValue>
 TValue GetProperty(System::String ^ property);
public TValue GetProperty<TValue> (string propertyName);
public TValue GetProperty<TValue> (string property);
member this.GetProperty : string -> 'Value
member this.GetProperty : string -> 'Value
Public Function GetProperty(Of TValue) (propertyName As String) As TValue
Public Function GetProperty(Of TValue) (property As String) As TValue

Parametry typu

TValue

Typ właściwości do pobrania.

Parametry

propertyNameproperty
String

Nazwa właściwości do pobrania.

Zwraca

TValue

Wartość właściwości do pobrania.

Wyjątki

propertyName to null.

Uwagi

Metoda GetProperty najpierw wywołuje metodę, TryGetProperty<TValue>(String, TValue) aby określić, czy właściwość określona w parametrze propertyName została ustawiona. Po drugie metoda sprawdza, GetProperty czy gdy zwracana jest wartość właściwości, można ją ustawić na typ określony w parametrze TValue .

Dotyczy