共用方式為


CompositeDuplexBindingElement.CanBuildChannelListener<TChannel> 方法

定義

傳回值,這個值會指出繫結程序是否可以建置通道接聽項,以接受符合內容需求的特定通道型別。

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

類型參數

TChannel

接聽程式會接受的 IChannel

參數

context
BindingContext

BindingContext,其提供建置通道接聽程式所需的內容。

傳回

如果能夠針對接受所指定通道型別所需的建置來建置通道接聽項,則為 true,否則為 false

例外狀況

contextnull

備註

true 如果 TChannel == IInputChannel 與內部系結也可以建置 ,則為 IInputChannel,否則為 false

適用於