CompositeDuplexBindingElement.CanBuildChannelListener<TChannel> Metoda

Definicja

Zwraca wartość wskazującą, czy powiązanie może skompilować odbiornik kanału, który akceptuje określony typ kanału, który spełnia wymagania kontekstowe.

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

Odbiornik IChannel akceptuje.

Parametry

context
BindingContext

Element BindingContext , który zapewnia kontekst wymagany do utworzenia odbiornika kanału.

Zwraca

true jeśli odbiornik kanału można skompilować dla kompilacji wymaganej do zaakceptowania określonego typu kanału; w przeciwnym razie , false.

Wyjątki

context to null.

Uwagi

true jeśli TChannel == IInputChannel i wewnętrzne powiązanie może również skompilować IInputChannel; w przeciwnym razie false.

Dotyczy