MsmqIntegrationBindingElement.CanBuildChannelListener<TChannel> Metoda

Definicja

Zwraca wartość wskazującą, czy można utworzyć odbiornik kanału z podanym kontekstem.

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

Parametry typu

TChannel

Typ kanału.

Parametry

context
BindingContext

Element BindingContext , za pomocą którego można skompilować odbiornik kanału.

Zwraca

Boolean

true jeśli możesz utworzyć odbiornik kanału z podanym kontekstem; w przeciwnym razie , false.

Ta metoda zwraca wartość true tylko wtedy, gdy TChannel jest to IInputChannel.

Dotyczy