TransactionOption 列挙体とは? わかりやすく解説

TransactionOption 列挙体

コンポーネント必要な自動トランザクションタイプ指定します

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

<SerializableAttribute> _
Public Enumeration TransactionOption
Dim instance As TransactionOption
[SerializableAttribute] 
public enum TransactionOption
[SerializableAttribute] 
public enum class TransactionOption
/** @attribute SerializableAttribute() */ 
public enum TransactionOption
SerializableAttribute 
public enum TransactionOption
メンバメンバ
解説解説
使用例使用例

TransactionOption 型の使用方法コード例次に示します

Imports System
Imports System.EnterpriseServices
Imports System.Reflection


' References:
' System.EnterpriseServices

' An instance of this class will not participate in transactions, but
 can
' share its caller's context even if its caller is configured as
' NotSupported, Supported, Required, or RequiresNew.
<Transaction(TransactionOption.Disabled)>  _
Public Class TransactionAttribute_TransactionDisabled
    Inherits ServicedComponent
End Class 'TransactionAttribute_TransactionDisabled

' An instance of this class will not participate in transactions, and
 will
' share its caller's context only if its caller is also configured as
' NotSupported.
<Transaction(TransactionOption.NotSupported)>  _
Public Class TransactionAttribute_TransactionNotSupported
    Inherits ServicedComponent
End Class 'TransactionAttribute_TransactionNotSupported

' An instance of this class will participate in its caller's transaction
' if one exists.
<Transaction(TransactionOption.Supported)>  _
Public Class TransactionAttribute_TransactionSupported
    Inherits ServicedComponent
End Class 'TransactionAttribute_TransactionSupported

' An instance of this class will participate in its caller's transaction
' if one exists. If not, a new transaction will be created for it.
<Transaction(TransactionOption.Required)>  _
Public Class TransactionAttribute_TransactionRequired
    Inherits ServicedComponent
End Class 'TransactionAttribute_TransactionRequired

' A new transaction will always be created for an instance of this class.
<Transaction(TransactionOption.RequiresNew)>  _
Public Class TransactionAttribute_TransactionRequiresNew
    Inherits ServicedComponent
End Class 'TransactionAttribute_TransactionRequiresNew
using System;
using System.EnterpriseServices;
using System.Reflection;

// References:
// System.EnterpriseServices

// An instance of this class will not participate in transactions, but
 can
// share its caller's context even if its caller is configured as
// NotSupported, Supported, Required, or RequiresNew.
[Transaction(TransactionOption.Disabled)]
public class TransactionAttribute_TransactionDisabled
 : ServicedComponent
{
}

// An instance of this class will not participate in transactions, and
 will
// share its caller's context only if its caller is also configured
 as
// NotSupported.
[Transaction(TransactionOption.NotSupported)]
public class TransactionAttribute_TransactionNotSupported
 : ServicedComponent
{
}

// An instance of this class will participate in its caller's transaction
// if one exists.
[Transaction(TransactionOption.Supported)]
public class TransactionAttribute_TransactionSupported
 : ServicedComponent
{
}

// An instance of this class will participate in its caller's transaction
// if one exists. If not, a new transaction will be created for it.
[Transaction(TransactionOption.Required)]
public class TransactionAttribute_TransactionRequired
 : ServicedComponent
{
}

// A new transaction will always be created for an instance of this
 class.
[Transaction(TransactionOption.RequiresNew)]
public class TransactionAttribute_TransactionRequiresNew
 : ServicedComponent
{
}
#using <System.EnterpriseServices.dll>

using namespace System;
using namespace System::EnterpriseServices;
using namespace System::Reflection;

// References:
// System.EnterpriseServices

// An instance of this class will not participate in transactions, but
 can
// share its caller's context even if its caller is configured as
// NotSupported, Supported, Required, or RequiresNew.
[Transaction(TransactionOption::Disabled)]
public ref class TransactionDisabled : public
 ServicedComponent
{
};

// An instance of this class will not participate in transactions, and
 will
// share its caller's context only if its caller is also configured
 as
// NotSupported.
[Transaction(TransactionOption::NotSupported)]
public ref class TransactionNotSupported :
 public ServicedComponent
{
};

// An instance of this class will participate in its caller's transaction
// if one exists.
[Transaction(TransactionOption::Supported)]
public ref class TransactionSupported : public
 ServicedComponent
{
};

// An instance of this class will participate in its caller's transaction
// if one exists. If not, a new transaction will be created for it.
[Transaction(TransactionOption::Required)]
public ref class TransactionRequired : public
 ServicedComponent
{
};

// A new transaction will always be created for an instance of this
 class.
[Transaction(TransactionOption::RequiresNew)]
public ref class TransactionRequiresNew : public
 ServicedComponent
{
};
import System.*;
import System.EnterpriseServices.*;
import System.Reflection.*;

// References:
// System.EnterpriseServices
// An instance of this class will not participate in transactions, but
 can
// share its caller's context even if its caller is configured as
// NotSupported, Supported, Required, or RequiresNew.
/** @attribute Transaction(TransactionOption.Disabled)
 */
public class TransactionAttribute_TransactionDisabled
 extends ServicedComponent
{
} //TransactionAttribute_TransactionDisabled

// An instance of this class will not participate in transactions, and
 will
// share its caller's context only if its caller is also configured
 as
// NotSupported.
/** @attribute Transaction(TransactionOption.NotSupported)
 */
public class TransactionAttribute_TransactionNotSupported
 extends 
    ServicedComponent
{
} //TransactionAttribute_TransactionNotSupported

// An instance of this class will participate in its caller's transaction
// if one exists.
/** @attribute Transaction(TransactionOption.Supported)
 */
public class TransactionAttribute_TransactionSupported
 extends ServicedComponent
{
} //TransactionAttribute_TransactionSupported

// An instance of this class will participate in its caller's transaction
// if one exists. If not, a new transaction will be created for it.
/** @attribute Transaction(TransactionOption.Required)
 */
public class TransactionAttribute_TransactionRequired
 extends ServicedComponent
{
} //TransactionAttribute_TransactionRequired

// A new transaction will always be created for an instance of this
 class.
/** @attribute Transaction(TransactionOption.RequiresNew)
 */
public class TransactionAttribute_TransactionRequiresNew
 extends 
    ServicedComponent
{
} //TransactionAttribute_TransactionRequiresNew
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「TransactionOption 列挙体」の関連用語

TransactionOption 列挙体のお隣キーワード
検索ランキング

   

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



TransactionOption 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS