共用方式為


SslStreamSecurityBindingElement.CanBuildChannelListener<TChannel> 方法

定義

取得值,這個值會指出是否能建置指定型別的通道接聽程式。

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

類型參數

TChannel

通道接聽程式的類型。

參數

傳回

如果能建置指定型別的通道接聽程式,則為 true,否則為 false

例外狀況

contextnull

備註

您應該在嘗試建立通道接聽程式之前呼叫這個方法。

適用於