UseManagedPresentationBindingElement.GetProperty<T>(BindingContext) 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 override T GetProperty(System::ServiceModel::Channels::BindingContext ^ context);
public override T GetProperty<T> (System.ServiceModel.Channels.BindingContext context) where T : class;
override this.GetProperty : System.ServiceModel.Channels.BindingContext -> 'T (requires 'T : null)
Public Overrides Function GetProperty(Of T As Class) (context As BindingContext) As T
Parâmetros de tipo
- T
O tipo de objeto que está sendo consultado.The type of object being queried for.
Parâmetros
- context
- BindingContext
O BindingContext que fornece o contexto para o elemento de associação.The BindingContext that provides context for the binding element.
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.
Comentários
Use isso para solicitar um objeto tipado, como uma interface para definir propriedades ou obter o status da camada apropriada na pilha de associação.Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the binding stack. Se uma camada der suporte ao retorno do objeto solicitado, ela a retornará.If a layer supports returning the requested object, it returns it. Caso contrário, ele delega a chamada para a próxima camada na pilha.If not, it delegates the call down to the next layer in the stack. Se chegar à parte inferior da pilha e nenhuma camada de ligação tiver suporte para o objeto solicitado, o método retornará null .If it gets to the bottom of the stack and no binding layer supported the requested object, then the method returns null.