BindingContext.GetInnerProperty<T> Metoda

Definicja

Zwraca żądany obiekt typu z odpowiedniej warstwy w stosie powiązań.

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 metoda wykonuje zapytanie.

Zwraca

T

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

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