次の方法で共有


MessageQueueInstaller.Path プロパティ

このオブジェクトが参照するキューの場所を取得または設定します。

Public Property Path As String
[C#]
public string Path {get; set;}
[C++]
public: __property String* get_Path();public: __property void set_Path(String*);
[JScript]
public function get Path() : String;public function set Path(String);

プロパティ値

ネットワーク上でキューの場所を表すパス。

例外

例外の種類 条件
ArgumentException Path に無効な値が設定されました。構文が無効である可能性があります。

または

Path が null 参照 (Visual Basic では Nothing) です。

解説

Path プロパティの構文は、参照するキューの種類によって異なります。さまざまな種類のキューで使用する構文を次の表に示します。

キューの種類 構文
パブリック キュー machineName\ queueName
プライベート キュー machineName\Private$\ queueName
ジャーナル キュー machineName\ queueName\Journal$
コンピュータの履歴キュー machineName\Journal$
コンピュータ配信不能キュー machineName\Deadletter$
コンピュータ トランザクション配信不能キュー machineName\XactDeadletter$

ローカル コンピュータでは、"." を使用します。

メッセージ キュー アプリケーション オブジェクトの FormatName または Label を使用してキューのパスを記述することもできます。それぞれの参照の種類で使用する正しい構文を次の表に示します。

参照 構文
書式名 FormatName:[ format name ]
ラベル Label:[ label ]

オフラインで作業をしている場合は、書式名を使用してキュー Path を定義する必要があります。このように指定しない場合、 PathFormatName に解決するプライマリ ドメイン コントローラが利用できないため、アプリケーションは例外をスローします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

MessageQueueInstaller クラス | MessageQueueInstaller メンバ | System.Messaging 名前空間