MsmqTransportBindingElement.BuildChannelListener<TChannel> メソッド

定義

指定したコンテキストを使用してチャネル リスナーを作成します。

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

型パラメーター

TChannel

チャネル リスナーのビルドに使用されるチャネルの種類。 許可されているチャネルの種類は、IInputSessionChannel クラスまたは IInputChannel クラスです。

パラメーター

context
BindingContext

チャネル リスナーのビルドに使用する BindingContext

戻り値

既存のメッセージ キュー (MSMQ) アプリケーションからのメッセージを受信するためのチャネルの作成に使用する MSMQ チャネル リスナー。

例外

コンテキスト値が null です。

TChannel が IInputChannel または IInputSessionChannel ではありません。

ExactlyOnce が true で、Durable が false です。

- または -

キューが読み取り可能ではありません。

- または -

ExactlyOnce が true で、キューが非トランザクションです。

- または -

ExactlyOnce が false で、キューがトランザクションです。

- または -

Windows Vista で、ReceiveErrorHandling が Move に設定され、キュー名に ";" が含まれます。

- または -

Windows Vista で、ExactlyOnce が true に設定され、リトライ サブキューを開くことができません。

- または -

ReceiveErrorHandling が Reject または Move に設定され、プラットフォームが Windows Vista です。

- または -

MsmqTransportSecurity.MsmqAuthenticationMode が WindowsDomain に設定されていて、MSMQ と共に ActiveDirectory 統合がインストールされていません。

- または -

MsmqTransportSecurity.MsmqAuthenticationMode が None で、MsmqTransportSecurity.MsmqProtectionLevel が None ではありません。

- または -

MsmqTransportSecurity.MsmqAuthenticationMode が Certificate または WindowsDomain で、MsmqTransportSecurity.MsmqProtectionLevel が None です。

transportBindingElement.BuildChannelListener<IInputChannel>(context);

適用対象