BindingContext.GetInnerProperty<T> 메서드

정의

요청한 형식화된 개체가 있으면 바인딩 스택의 해당 계층에서 반환합니다.

public:
generic <typename T>
 where T : class T GetInnerProperty();
public T GetInnerProperty<T> () where T : class;
member this.GetInnerProperty : unit -> 'T (requires 'T : null)
Public Function GetInnerProperty(Of T As Class) () As T

형식 매개 변수

T

메서드에서 쿼리하고 있는 형식화된 개체입니다.

반환

T

요청한 형식의 개체가 있으면 해당 형식의 개체 T이고, 없으면 null입니다.

예제

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
XmlDictionaryReaderQuotas quotas = context.GetInnerProperty<XmlDictionaryReaderQuotas>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim quotas As XmlDictionaryReaderQuotas = context.GetInnerProperty(Of XmlDictionaryReaderQuotas)()

설명

바인딩 컨텍스트를 복제하고 바인딩 컨텍스트에 저장된 다음 바인딩 요소를 호출 GetProperty<T>(BindingContext) 합니다.

적용 대상