Sdílet prostřednictvím


CompositeDuplexBindingElement.CanBuildChannelListener<TChannel> Metoda

Definice

Vrátí hodnotu, která označuje, zda vazba může vytvořit naslouchací proces kanálu, který přijímá určitý typ kanálu, který splňuje požadavky na kontext.

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

To IChannel , co naslouchací proces přijme.

Parametry

context
BindingContext

Ten BindingContext , který poskytuje kontext potřebný k sestavení naslouchacího procesu kanálu.

Návraty

truepokud lze naslouchací proces kanálu sestavit pro sestavení potřebné k přijetí zadaného typu kanálu; v opačném případě . false

Výjimky

context je null.

Poznámky

trueif TChannel == IInputChannel a vnitřní vazba může také vytvořit IInputChannel; v opačném případě . false

Platí pro