SslStreamSecurityBindingElement.BuildChannelFactory<TChannel> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立特定類型的通道工廠。
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
一種通道工廠。
參數
- context
- BindingContext
傳回
一個 IChannelFactory 代表型別 TChannel為 的通道工廠的物件。
例外狀況
context 是 null。
備註
此方法建立通道工廠,用於建立一個通道來處理此綁定的發出訊息。