MtomMessageEncodingBindingElement.BuildChannelListener<TChannel>(BindingContext) 方法

定義

在用戶端上建置通道接聽程式堆疊,這個堆疊會針對指定的內容接受指定的通道類型。Builds the channel listener stack on the client that accepts a specified type of channel for a specified context.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override System::ServiceModel::Channels::IChannelListener<TChannel> ^ BuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelListener<TChannel> BuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.BuildChannelListener : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelListener<'Channel (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)> (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function BuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As IChannelListener(Of TChannel)

類型參數

TChannel

通道接聽程式接受的通道類型。The type of channel the channel listener accepts.

參數

context
BindingContext

接聽程式的 BindingContextThe BindingContext for the listener.

傳回

IChannelListener<TChannel> 型別的 TChannel,其適用於指定的內容。An IChannelListener<TChannel> of type TChannel for the specified context.

適用於