ContextUtil.IsInTransaction プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
例外
使用例IsInTransaction プロパティの値を取得するコード例を次に示します。
<Transaction(TransactionOption.Required)> _ Public Class ContextUtil_IsInTransaction Inherits ServicedComponent Public Sub Example() ' Display whether the current COM+ context is enlisted in a ' transaction. MsgBox("Current context enlisted in transaction: " & ContextUtil.IsInTransaction) End Sub 'Example End Class 'ContextUtil_IsInTransaction
[Transaction(TransactionOption.Required)] public class ContextUtil_IsInTransaction : ServicedComponent { public void Example() { // Display whether the current COM+ context is enlisted in a // transaction. Console.WriteLine("Current context enlisted in transaction: {0}", ContextUtil.IsInTransaction); } }
[Transaction(TransactionOption::Required)] public ref class ContextUtil_IsInTransaction: public ServicedComponent { public: void Example() { // Display whether the current COM+ context is enlisted in a // transaction. Console::WriteLine( "Current context enlisted in transaction: {0}", ContextUtil::IsInTransaction ); } };
/** @attribute Transaction(TransactionOption.Required) */ public class ContextUtil_IsInTransaction extends ServicedComponent { public void Example() { // Display whether the current COM+ context is enlisted in a // transaction. Console.WriteLine("Current context enlisted in transaction: {0}", System.Convert.ToString(ContextUtil.get_IsInTransaction())); } //Example } //ContextUtil_IsInTransaction
.NET Framework のセキュリティ
プラットフォーム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.IsInTransaction プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からContextUtil.IsInTransaction プロパティ
を検索
- ContextUtil.IsInTransaction プロパティのページへのリンク