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) を呼び出します。

適用対象