ReliableSessionBindingElement.CanBuildChannelFactory<TChannel> 方法

定義

傳回值,這個值會指出是否可以為可支援可靠工作階段的通道和內容建置通道處理站。

public:
generic <typename TChannel>
 override bool CanBuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.CanBuildChannelFactory : System.ServiceModel.Channels.BindingContext -> bool
Public Overrides Function CanBuildChannelFactory(Of TChannel) (context As BindingContext) As Boolean

類型參數

TChannel

處理站建置之通道的型別。

參數

context
BindingContext

BindingContext,其中包含建置可產生 TChannel 型別通道之處理站時的必要資訊。

傳回

如果可以建置型別 TChannelIChannelFactory<TChannel>,則為 true,否則為 false

備註

這個方法會根據 true 中所提供值的表格,為 false 傳回 TChannelBuildChannelFactory<TChannel>(BindingContext)

適用於