WindowsStreamSecurityBindingElement.CanBuildChannelListener<TChannel> Metoda

Definicja

Określa, czy można skompilować odbiornik kanału określonego typu.

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 do sprawdzenia.

Parametry

context
BindingContext

Element BindingContext dla kanału.

Zwraca

Boolean

true jeśli można skompilować odbiornik kanału; w przeciwnym razie , false.

Wyjątki

context to null.

Uwagi

Odbiornik kanału służy do tworzenia kanału, który przetwarza komunikaty przychodzące dla tego powiązania. Ta metoda deleguje do CanBuildInnerChannelListener metody.

Dotyczy