BindingContext.GetInnerProperty<T> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
バインディング スタック内の適切なレイヤーから、要求された型指定されたオブジェクト (存在する場合) を返します。
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) を呼び出します。