Share via


MsmqTransportBindingElement.BuildChannelFactory<TChannel> メソッド

定義

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

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

型パラメーター

TChannel

IOutputSessionChannel クラスまたは IOutputChannel クラス。

パラメーター

context
BindingContext

チャネル ファクトリのビルドに使用する BindingContext

戻り値

既存のメッセージ キュー (MSMQ) アプリケーションへのメッセージ送信用チャネルを作成するためのメッセージ キュー チャネル ファクトリ。

例外

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

TChannel が IOutputChannel または IOutputSessionChannel ではありません。

ExactlyOnce が true で、Durable が false です。

- または -

UseActiveDirectory が true で、QueueTransferProtocol が Native ではありません。

- または -

CustomDeadLetterQueue が null ではなく、DeadLetterQueue が Custom ではありません。

- または -

DeadLetterQueue が Custom on Windows 2003/XP に設定されています。

- または -

ExactlyOnce が false で、DeadLetterQueue が Custom です。

- または -

CustomDeadLetterQueue が設定されていて、キューに書き込むための書き込みアクセス許可がないか、またはキューが存在しません。

- または -

CustomDeadLetterQueue が非トランザクションです。

- または -

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

- または -

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

- または -

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

- または -

MsmqTransportSecurity.MsmqProtectionLevel が EncryptAndSign で、UseActiveDirectory が false です。

transportBindingElement.BuildChannelFactory<IOutputChannel>(context);

注釈

バインド要素に設定されているプロパティを使用して、チャネル ファクトリが作成および初期化されます。 初期化されたチャネル ファクトリは、次に、メッセージをメッセージ キューに送信するために使用できる出力チャネルの作成に使用されます。

適用対象