Język

BindingContext.GetInnerProperty<T> Metoda

Definicja

Zwraca żądany obiekt typu (jeśli istnieje) z odpowiedniej warstwy w stosie powiązania.

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

Typowany obiekt, dla którego wykonuje zapytanie w metodzie.

Zwraca

T

Typowany obiekt T zażądany, jeśli jest obecny lub null nie.

Przykłady

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

Uwagi

Klonuje kontekst powiązania i wywołuje GetProperty<T>(BindingContext) następny element powiązania przechowywany w kontekście powiązania.

Dotyczy