BindingContext.GetInnerProperty<T> Méthode

Définition

Retourne un objet typé demandé (s’il existe) à partir de la couche appropriée dans la pile de liaison.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

Paramètres de type

T

Objet typé pour lequel la méthode effectue une requête.The typed object for which the method is querying.

Retours

T

Objet typé T demandé, s'il existe ; sinon null.The typed object T requested if it is present or null if it is not.

Exemples

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

Remarques

Clone le contexte de liaison et appelle GetProperty<T>(BindingContext) sur le prochain élément de liaison stocké dans le contexte de liaison.Clones the binding context and calls GetProperty<T>(BindingContext) on the next binding element stored in the binding context.

S’applique à