MtomMessageEncodingBindingElement.BuildChannelFactory<TChannel>(BindingContext) 方法

定義

在用戶端上建置通道處理站堆疊,這個堆疊會針對指定的內容建立指定的通道類型。Builds the channel factory stack on the client that creates a specified type of channel for a specified context.

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

類型參數

TChannel

通道處理站所產生之通道的類型。The type of channel the channel factory produces.

參數

context
BindingContext

通道的 BindingContextThe BindingContext for the channel.

傳回

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

適用於