SecurityTokenRequirement.GetProperty<TValue>(String) Metodo

Definizione

Ottiene la proprietà specificata per l'istanza corrente di SecurityTokenRequirement.

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

Parametri di tipo

TValue

Tipo di proprietà da ottenere.

Parametri

propertyName
String

Nome della proprietà da ottenere.

Restituisce

TValue

Valore della proprietà da ottenere.

Eccezioni

propertyName è null.

Commenti

Il metodo GetProperty chiama prima il metodo TryGetProperty<TValue>(String, TValue) per determinare se è stata impostata la proprietà specificata nel parametro propertyName. Il metodo GetProperty verifica quindi che un valore della proprietà che viene restituito possa essere impostato sul tipo specificato nel parametro TValue.

Si applica a