共用方式為


WindowsStreamSecurityBindingElement.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

要檢查之通道的類型。

參數

context
BindingContext

通道的 BindingContext

傳回

Boolean

如果能建置通道接聽程式,則為 true,否則為 false

例外狀況

contextnull

備註

通道接聽程式可用來建立處理此繫結之傳入訊息的通道。 這個方法會委派至 CanBuildInnerChannelListener 方法。

適用於