共用方式為


PeerTransportBindingElement.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

適用於