SecurityTokenRequirement.GetProperty<TValue>(String) Metodo

Definizione

Ottiene la proprietà specificata per l'istanza corrente 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 della proprietà da ottenere.

Parametri

propertyName
String

Nome della proprietà da ottenere.

Valori restituiti

TValue

Valore della proprietà da ottenere.

Eccezioni

propertyName è null.

Commenti

Il GetProperty metodo chiama innanzitutto il TryGetProperty<TValue>(String, TValue) metodo per determinare se la proprietà specificata nel propertyName parametro è stata impostata. In secondo luogo, il GetProperty metodo verifica che quando viene restituito un valore di proprietà che può essere impostato sul tipo specificato nel TValue parametro .

Si applica a