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

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

Message.SourceMachine プロパティ

メッセージの送信元のコンピュータを取得します。

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

Dim instance As Message
Dim value As String

value = instance.SourceMachine
public string SourceMachine { get;
 }
public:
property String^ SourceMachine {
    String^ get ();
}
/** @property */
public String get_SourceMachine ()

プロパティ値
メッセージの送信元のコンピュータの名前。

例外例外
例外の種類条件

InvalidOperationException

メッセージは送信されていません。このプロパティは、キューから取得したメッセージでだけ読み込むことができます。

または

フィルタ処理されたメッセージ キューが、SourceMachine プロパティを無視します。

MessageQueueException

コンピュータの情報またはディレクトリ サービスにアクセスできません。

解説解説

SourceMachine プロパティの書式では、先頭の 2 つのスラッシュ (\\) は不要です。たとえば、myServer は有効な SourceMachine です。

使用例使用例

メッセージの SourceMachine プロパティの値を表示するコード例を次に示します。

// Display the value of the message's SourceMachine property.
// To view this property value, the queue's
// MessageReadPropertyFilter.SourceMachine property must be set to
// true before the message is received.
Console.WriteLine("Source Machine: {0}", orderMessage.SourceMachine);
// Display the value of the message's SourceMachine property.
// To view this property value, the queue's
// MessageReadPropertyFilter.SourceMachine property must be set to
// true before the message is received.
Console::WriteLine("Source Machine: {0}", orderMessage->SourceMachine);
// Display the value of the message's SourceMachine property.
// To view this property value, the queue's
// MessageReadPropertyFilter.SourceMachine property must be set to
// true before the message is received.
Console.WriteLine("Source Machine: {0}", 
    System.Convert.ToString(orderMessage.get_SourceMachine()));
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「Message.SourceMachine プロパティ」の関連用語

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

   

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



Message.SourceMachine プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS