TransportBindingElement.GetProperty<T>(BindingContext) Método

Definição

Obtém uma propriedade do BindingContext especificado.Gets a property from the specified BindingContext.

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

A propriedade a ser obtida.The property to get.

Parâmetros

Retornos

T

A propriedade do BindingContext especificado.The property from the specified BindingContext.

Comentários

Esse método recebe um contexto de associação como um parâmetro de entrada, que representa a pilha de elementos de associação.This method receives a binding context as an input parameter, which represents the stack of binding elements. Esse método obtém o objeto especificado diretamente, delega a consulta ao próximo elemento de associação inferior na pilha ou uma combinação dos dois.This method gets the specified object directly, delegates the inquiry to the next lower binding element in the stack, or a combination of the two. Ele pode modificar o contexto se ele delegar a consulta.It can modify the context if it delegates the inquiry. Cada elemento de ligação na pilha pode repetir esse processo, se tiver sido delegado para, até que a parte inferior da pilha seja atingida.Each binding element in the stack can repeat this process, if it has been delegated to, until the bottom of the stack is reached. O objeto retornado geralmente é uma coleção de propriedades.The object returned is usually a collection of properties.

Se o tipo de T for ChannelProtectionRequirements , XmlDictionaryReaderQuotas , ou MessageVersion uma instância dessa classe será retornada.If the type of T is ChannelProtectionRequirements, XmlDictionaryReaderQuotas, or MessageVersion then an instance of this class is returned. Se o tipo de T corresponde ao tipo de uma instância no BindingParameters , essa instância é retornada.If the type of T matches the type of an instance in BindingParameters, that instance is returned.

Esse método é implementado por elementos de associação, bem como pelos objetos de tempo de execução, como IChannelFactory , IChannelListener e IChannel .This method is implemented by binding elements as well as by the run-time objects such as IChannelFactory, IChannelListener, and IChannel.

Aplica-se a