SecurityTokenRequirement.GetProperty<TValue>(String) メソッド

定義

現在の 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

型パラメーター

TValue

取得するプロパティの型。

パラメーター

propertyName
String

取得するプロパティの名前。

戻り値

TValue

取得するプロパティの値。

例外

propertyNamenullです。

注釈

GetProperty メソッドは、最初に TryGetProperty<TValue>(String, TValue) メソッドを呼び出して、propertyName パラメーターに指定されたプロパティが設定されているかどうかを判断します。 次に、GetProperty メソッドで、プロパティ値を返すときに TValue パラメーターに指定された型に設定可能であるかどうかを確認します。

適用対象