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



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS