BindingContext.GetInnerProperty<T> Método

Definição

Retorna um objeto tipado solicitado, se presente, da camada apropriada na pilha de associação.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

Parâmetros de tipo

T

O objeto tipado para o qual o método está consultando.The typed object for which the method is querying.

Retornos

T

O objeto tipado T solicitado se ele estiver presente ou então null se não estiver.The typed object T requested if it is present or null if it is not.

Exemplos

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

Comentários

Clona o contexto de associação e chama GetProperty<T>(BindingContext) o próximo elemento de associação armazenado no contexto de associação.Clones the binding context and calls GetProperty<T>(BindingContext) on the next binding element stored in the binding context.

Aplica-se a