共用方式為


DiscoveryClientBindingElement.CanBuildChannelListener<TChannel> 方法

定義

由於探索用戶端通道不支援繫結通道接聽程式,因此這個方法會固定傳回 false。 它可能會擴充以傳回值,指出繫結項目是否可以建置特定通道型別的接聽程式。

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

接聽項接受的通道類型。

參數

context
BindingContext

繫結內容。

傳回

Boolean

如果繫結項目可以建立指定型別的 IChannelListener<TChannel>,則為 true,否則為 false

適用於