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

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

Message.TransactionId プロパティ

一部にメッセージを含むトランザクションの ID を取得します。

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

Dim instance As Message
Dim value As String

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

プロパティ値
メッセージに関連付けられているトランザクションの ID。

例外例外
例外の種類条件

InvalidOperationException

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

または

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

解説解説
使用例使用例

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

// Display the value of the message's TransactionId property.
// To view this property value, the queue's
// MessageReadPropertyFilter.TransactionId property must be set to true
// before the message is received.
Console.WriteLine("Message.TransactionId: {0}",
    orderMessage.TransactionId);
// Display the value of the message's TransactionId property.
// To view this property value, the queue's
// MessageReadPropertyFilter.TransactionId property must be set to true
// before the message is received.
Console::WriteLine("Message.TransactionId: {0}",
    orderMessage->TransactionId);
// Display the value of the message's TransactionId property.
// To view this property value, the queue's
// MessageReadPropertyFilter.TransactionId property must be set to true
// before the message is received.
Console.WriteLine("Message.TransactionId: {0}", 
    System.Convert.ToString(orderMessage.get_TransactionId()));
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Message クラス
Message メンバ
System.Messaging 名前空間
Message.IsFirstInTransaction プロパティ
Message.IsLastInTransaction プロパティ
Transactional



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2026 GRAS Group, Inc.RSS