Bagikan melalui


HttpTransportBindingElement.CanBuildChannelListener<TChannel> Metode

Definisi

Menentukan apakah pendengar saluran dari jenis yang ditentukan dapat dibangun.

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

Jenis parameter

TChannel

Jenis saluran yang akan diperiksa.

Parameter

context
BindingContext

Untuk BindingContext saluran.

Mengembalikan

true jika pendengar saluran dapat dibangun; jika tidak false.

Pengecualian

contextadalah null.

Berlaku untuk