MessageEncoder.GetProperty<T> Método
Definição
Retorna um objeto tipado solicitado, se presente, da camada apropriada na pilha de canais.Returns a typed object requested, if present, from the appropriate layer in the channel stack.
public:
generic <typename T>
where T : class virtual T GetProperty();
public virtual T GetProperty<T> () where T : class;
abstract member GetProperty : unit -> 'T (requires 'T : null)
override this.GetProperty : unit -> 'T (requires 'T : null)
Public Overridable Function GetProperty(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.
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 canais.Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel 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 canal tiver suporte para o objeto solicitado, o método retornará null .If it gets to the bottom of the stack and no channel layer supported the requested object, then the method returns null.