HttpTransportBindingElement.CanBuildChannelListener<TChannel>(BindingContext) Método
Definição
Determina se um ouvinte de canais do tipo especificado pode ser criado.Determines whether a channel listener of the specified type can be built.
public:
generic <typename TChannel>
where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean
Parâmetros de tipo
- TChannel
O tipo de canal a ser verificado.The type of channel to check.
Parâmetros
- context
- BindingContext
O BindingContext do canal.The BindingContext for the channel.
Retornos
true se um ouvinte de canais puder ser criado; caso contrário false.true if a channel listener can be built; otherwise false.
Exceções
context é null.context is null.