OneWayBindingElement.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,其提供繫結項目的內容。

傳回

Boolean

如果能建置指定型別的通道處理站,則為 true,否則為 false。 預設為 false

例外狀況

contextnull

備註

您應該在嘗試建立通道處理站之前呼叫這個方法。

trueTChannel 時,且在繫結堆疊中目前繫結的下一個繫結為 IOutputChannelIDuplexSessionChannel 時,這個方法會傳回 IRequestChannel

適用於