BindingContext.GetInnerProperty<T> Methode

Definitie

Retourneert een getypt object dat, indien aanwezig, is aangevraagd vanuit de juiste laag in de bindingsstack.

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

Het getypte object waarvoor de methode een query uitvoert.

Retouren

T

Het getypte object T dat wordt aangevraagd als het aanwezig is of null als het niet is.

Voorbeelden

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

Opmerkingen

Kloont de bindingscontext en roept het GetProperty<T>(BindingContext) volgende bindingselement op dat is opgeslagen in de bindingscontext.

Van toepassing op