Bewerken

Delen via


BindingContext.GetInnerProperty<T> Method

Definition

Returns a typed object requested, if present, from the appropriate layer in the binding stack.

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

Type Parameters

T

The typed object for which the method is querying.

Returns

T

The typed object T requested if it is present or null if it is not.

Examples

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)()

Remarks

Clones the binding context and calls GetProperty<T>(BindingContext) on the next binding element stored in the binding context.

Applies to