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

定義

現在の SecurityTokenRequirement インスタンスの指定したプロパティを取得します。

public:
generic <typename TValue>
 bool TryGetProperty(System::String ^ propertyName, [Runtime::InteropServices::Out] TValue % result);
public bool TryGetProperty<TValue>(string propertyName, out TValue result);
member this.TryGetProperty : string * 'Value -> bool
Public Function TryGetProperty(Of TValue) (propertyName As String, ByRef result As TValue) As Boolean

型パラメーター

TValue

result パラメーターで返すプロパティの型。

パラメーター

propertyName
String

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

result
TValue

propertyName プロパティで指定されたプロパティの値。

返品

true Properties プロパティに、propertyName プロパティで指定されたプロパティのプロパティ値が含まれている場合はfalse

例外

プロパティは、 propertyName パラメーターで指定された名前で存在しますが、 TValue パラメーターで指定されている型と同じではありません。

注釈

指定したプロパティのプロパティ値を取得し、プロパティ値を TValue パラメーターで指定された型に設定できることを確認するには、 GetProperty<TValue>(String) メソッドを呼び出します。

適用対象