ContextUtil.TransactionId プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)



TransactionId プロパティの値を取得するコード例を次に示します。
<Transaction(TransactionOption.Required)> _ Public Class ContextUtil_TransactionId Inherits ServicedComponent Public Sub Example() ' Display the ID of the transaction in which the current COM+ context ' is enlisted. MsgBox("Transaction ID: " & ContextUtil.TransactionId.ToString()) End Sub 'Example End Class 'ContextUtil_TransactionId
[Transaction(TransactionOption.Required)] public class ContextUtil_TransactionId : ServicedComponent { public void Example() { // Display the ID of the transaction in which the current COM+ context // is enlisted. Console.WriteLine("Transaction ID: {0}", ContextUtil.TransactionId); } }
[Transaction(TransactionOption::Required)] public ref class ContextUtil_TransactionId: public ServicedComponent { public: void Example() { // Display the ID of the transaction in which the current COM+ context // is enlisted. Console::WriteLine( "Transaction ID: {0}", ContextUtil::TransactionId ); } };
/** @attribute Transaction(TransactionOption.Required) */ public class ContextUtil_TransactionId extends ServicedComponent { public void Example() { // Display the ID of the transaction in which the current COM+ context // is enlisted. Console.WriteLine("Transaction ID: {0}", ContextUtil.get_TransactionId()); } //Example } //ContextUtil_TransactionId


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からContextUtil.TransactionId プロパティを検索する場合は、下記のリンクをクリックしてください。

- ContextUtil.TransactionId プロパティのページへのリンク