MsmqTransportBindingElement.BuildChannelFactory<TChannel> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定されたコンテキストを使用してチャネル ファクトリを構築します。
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
パラメーター
- context
- BindingContext
チャネル ファクトリの構築に使用する BindingContext 。
返品
既存のメッセージ キュー アプリケーションにメッセージを送信するチャネルを作成するために使用できるメッセージ キュー (MSMQ) チャネル ファクトリ。
例外
コンテキスト値が null です。
TChannel が IOutputChannel または IOutputSessionChannel ではありません。
ExactlyOnce は true、Durable は false です。
-又は-
UseActiveDirectory が true で、QueueTransferProtocol がネイティブではありません。
-又は-
CustomDeadLetterQueue が null ではなく、DeadLetterQueue が Custom ではありません。
-又は-
Windows 2003/XP では DeadLetterQueue が Custom に設定されています。
-又は-
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);
注釈
チャネル ファクトリは、バインド要素で設定されたプロパティを使用して作成および初期化されます。 初期化されたチャネル ファクトリは、メッセージ キューにメッセージを送信するために使用できる出力チャネルを作成するために使用されます。