MessageQueue.MachineName プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MessageQueue.MachineName プロパティの意味・解説 

MessageQueue.MachineName プロパティ

メッセージ キューキュー存在するコンピュータの名前を取得または設定します

名前空間: System.Messaging
アセンブリ: System.Messaging (system.messaging.dll 内)
構文構文

Dim instance As MessageQueue
Dim value As String

value = instance.MachineName

instance.MachineName = value
public string MachineName { get;
 set; }
/** @property */
public String get_MachineName ()

/** @property */
public void set_MachineName (String value)
public function get MachineName
 () : String

public function set MachineName
 (value : String)

プロパティ
キュー存在するコンピュータの名前。メッセージ キュー既定値は、ローカル コンピュータを表す "." です。

例外例外
例外種類条件

ArgumentException

MachineNamenull 参照 (Visual Basic では Nothing) です。

ArgumentException

コンピュータ名が無効です。構文誤っている可能性あります

MessageQueueException

メッセージ キューメソッドアクセスしたときにエラー発生しました

解説解説

MachineName は、キュー Path表示名使用する構文不可欠なコンポーネントです。キュー パス表示名使用して識別するときに、指定した種類キューに対して使用する構文次の表に示します

MachineNameローカル コンピュータ指定する場合は "." を使用します。このプロパティではコンピュータ名だけが認識されます。たとえば、Server0 など。MachineName プロパティIP アドレス形式サポートしません。

PathMachineName定義した場合パス変換ドメイン コントローラ必要なため、アプリケーションオフライン実行する例外スローさます。そのため、オフライン作業をする場合は、Path 構文に FormatName を使用する必要があります

MachineNamePath、QueueName の各プロパティ相互に関係しますMachineName プロパティ変更すると、Path プロパティ変更されます。これは、新しMachineNameQueueName から構築されます。Path を (たとえば、書式構文使用するように) 変更すると、新しキュー参照するように MachineName プロパティQueueName プロパティリセットされます。QueueName プロパティが空の場合Path指定したコンピュータ履歴キュー設定されます。

このプロパティ各種ワークグループ モード使用できるかどうか次の表に示します

使用例使用例

メッセージ キューMachineName プロパティ対し、値の取得設定を行うコード例次に示します

// Set the queue's MachineName property value to the name of the local
// computer.
queue.MachineName = ".";

// Display the new value of the queue's MachineName property.
Console.WriteLine("MessageQueue.MachineName: {0}", queue.MachineName);
// Set the queue's MachineName property value to the name of the local
// computer.
queue.set_MachineName(".");
// Display the new value of the queue's MachineName property.
Console.WriteLine("MessageQueue.MachineName: {0}", 
    queue.get_MachineName());
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MessageQueue クラス
MessageQueue メンバ
System.Messaging 名前空間
QueueName
Path
MessageQueue.FormatName プロパティ
GetPublicQueues
GetMessageQueueEnumerator


このページでは「.NET Framework クラス ライブラリ リファレンス」からMessageQueue.MachineName プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMessageQueue.MachineName プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMessageQueue.MachineName プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「MessageQueue.MachineName プロパティ」の関連用語

MessageQueue.MachineName プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MessageQueue.MachineName プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS