共用方式為


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

接聽項接受的通道類型。

參數

context
BindingContext

BindingContext,其中提供繫結項目的內容。

傳回

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

適用於