Share via


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 지정된 형식으로 설정할 수 있는지 확인합니다.

적용 대상