BindingContext.GetInnerProperty<T> Metoda

Definice

Vrátí požadovaný typ objektu z příslušné vrstvy v zásobníku vazeb.

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

Parametry typu

T

Typový objekt, pro který metoda dotazuje.

Návraty

T

Zadaný objekt T byl požadován, pokud je k dispozici nebo null pokud není.

Příklady

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

Poznámky

Naklonuje kontext vazby a volá GetProperty<T>(BindingContext) další prvek vazby uložený v kontextu vazby.

Platí pro