Transaction.IsolationLevelとは? わかりやすく解説

Transaction.IsolationLevel プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

トランザクション分離レベル取得します

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

Public ReadOnly Property
 IsolationLevel As IsolationLevel
Dim instance As Transaction
Dim value As IsolationLevel

value = instance.IsolationLevel
public IsolationLevel IsolationLevel { get;
 }
public:
property IsolationLevel IsolationLevel {
    IsolationLevel get ();
}
/** @property */
public IsolationLevel get_IsolationLevel ()
public function get IsolationLevel
 () : IsolationLevel

プロパティ
トランザクション分離レベルを示す IsolationLevel 値のいずれか

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

TransactionIsolationLevel 列挙体

TransactionAttribute の値を指定します

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

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

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

Imports System
Imports System.EnterpriseServices
Imports System.Reflection


' References:
' System.EnterpriseServices

' An instance of this class will inherit its caller's transaction isolation
' level if available. If not, it will use isolation level Serializable.
<Transaction(Isolation := TransactionIsolationLevel.Any)>  _
Public Class TransactionAttribute_IsolationAny
    Inherits ServicedComponent
End Class 'TransactionAttribute_IsolationAny

' An instance of this class will read only committed data, but non-repeatable
' reads and phantom rows are still possible.
<Transaction(Isolation := TransactionIsolationLevel.ReadCommitted)>  _
Public Class TransactionAttribute_IsolationReadCommitted
    Inherits ServicedComponent
End Class 'TransactionAttribute_IsolationReadCommitted

' An instance of this class will read committed and uncommitted data,
 so dirty
' reads, non-repeatable reads, and phantom rows are possible.
<Transaction(Isolation := TransactionIsolationLevel.ReadUncommitted)>  _
Public Class TransactionAttribute_IsolationReadUncommitted
    Inherits ServicedComponent
End Class 'TransactionAttribute_IsolationReadUncommitted

' An instance of this class will read only committed data and place
 shared
' locks on the data, preventing other users from modifying it, but other
 users
' can still insert rows into the data set, so phantom rows are still
 possible.
<Transaction(Isolation := TransactionIsolationLevel.RepeatableRead)>  _
Public Class TransactionAttribute_IsolationRepeatableRead
    Inherits ServicedComponent
End Class 'TransactionAttribute_IsolationRepeatableRead

' An instance of this class will read only committed data and place
 a range
' lock on the data set, preventing other users from updating or inserting
 rows
' into the data set until its transaction is complete.
<Transaction(Isolation := TransactionIsolationLevel.Serializable)>  _
Public Class TransactionAttribute_IsolationSerializable
    Inherits ServicedComponent
End Class 'TransactionAttribute_IsolationSerializable

using System;
using System.EnterpriseServices;
using System.Reflection;

// References:
// System.EnterpriseServices

// An instance of this class will inherit its caller's transaction isolation
// level if available. If not, it will use isolation level Serializable.
[Transaction(Isolation=TransactionIsolationLevel.Any)]
public class TransactionAttribute_IsolationAny
 : ServicedComponent
{
}

// An instance of this class will read only committed data, but non-repeatable
// reads and phantom rows are still possible.
[Transaction(Isolation=TransactionIsolationLevel.ReadCommitted)]
public class TransactionAttribute_IsolationReadCommitted
 : ServicedComponent
{
}

// An instance of this class will read committed and uncommitted data,
 so dirty
// reads, non-repeatable reads, and phantom rows are possible.
[Transaction(Isolation=TransactionIsolationLevel.ReadUncommitted)]
public class TransactionAttribute_IsolationReadUncommitted
 : ServicedComponent
{
}

// An instance of this class will read only committed data and place
 shared
// locks on the data, preventing other users from modifying it, but
 other users
// can still insert rows into the data set, so phantom rows are still
 possible.
[Transaction(Isolation=TransactionIsolationLevel.RepeatableRead)]
public class TransactionAttribute_IsolationRepeatableRead
 : ServicedComponent
{
}

// An instance of this class will read only committed data and place
 a range
// lock on the data set, preventing other users from updating or inserting
 rows
// into the data set until its transaction is complete.
[Transaction(Isolation=TransactionIsolationLevel.Serializable)]
public class TransactionAttribute_IsolationSerializable
 : 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 inherit its caller's transaction isolation
// level if available. If not, it will use isolation level Serializable.
[Transaction(Isolation=TransactionIsolationLevel::Any)]
public ref class IsolationAny : public
 ServicedComponent
{
};

// An instance of this class will read only committed data, but non-repeatable
// reads and phantom rows are still possible.
[Transaction(Isolation=TransactionIsolationLevel::ReadCommitted)]
public ref class IsolationReadCommitted : public
 ServicedComponent
{
};

// An instance of this class will read committed and uncommitted data,
 so dirty
// reads, non-repeatable reads, and phantom rows are possible.
[Transaction(Isolation=TransactionIsolationLevel::ReadUncommitted)]
public ref class IsolationReadUncommitted :
 public ServicedComponent
{
};

// An instance of this class will read only committed data and place
 shared
// locks on the data, preventing other users from modifying it, but
 other users
// can still insert rows into the data set, so phantom rows are still
 possible.
[Transaction(Isolation=TransactionIsolationLevel::RepeatableRead)]
public ref class IsolationRepeatableRead :
 public ServicedComponent
{
};

// An instance of this class will read only committed data and place
 a range
// lock on the data set, preventing other users from updating or inserting
 rows
// into the data set until its transaction is complete.
[Transaction(Isolation=TransactionIsolationLevel::Serializable)]
public ref class IsolationSerializable : public
 ServicedComponent
{
};

import System.*;
import System.EnterpriseServices.*;
import System.Reflection.*;

// References:
// System.EnterpriseServices
// An instance of this class will inherit its caller's transaction isolation
// level if available. If not, it will use isolation level Serializable.
/** @attribute Transaction(Isolation = TransactionIsolationLevel.Any)
 */
public class TransactionAttribute_IsolationAny
 extends ServicedComponent
{
} //TransactionAttribute_IsolationAny

// An instance of this class will read only committed data, but non-repeatable
// reads and phantom rows are still possible.
/** @attribute Transaction(Isolation = TransactionIsolationLevel.ReadCommitted)
 */
public class TransactionAttribute_IsolationReadCommitted
 
    extends ServicedComponent
{
} //TransactionAttribute_IsolationReadCommitted

// An instance of this class will read committed and uncommitted data,
 so dirty
// reads, non-repeatable reads, and phantom rows are possible.
/** @attribute Transaction(Isolation = TransactionIsolationLevel.
    ReadUncommitted)
 */
public class TransactionAttribute_IsolationReadUncommitted
 
    extends ServicedComponent
{
} //TransactionAttribute_IsolationReadUncommitted

// An instance of this class will read only committed data and place
 shared
// locks on the data, preventing other users from modifying it, but
 other users
// can still insert rows into the data set, so phantom rows are still
 possible.
/** @attribute Transaction(Isolation = TransactionIsolationLevel.
    RepeatableRead)
 */
public class TransactionAttribute_IsolationRepeatableRead
 
    extends ServicedComponent
{
} //TransactionAttribute_IsolationRepeatableRead

// An instance of this class will read only committed data and place
 a range
// lock on the data set, preventing other users from updating or inserting
 rows
// into the data set until its transaction is complete.
/** @attribute Transaction(Isolation = TransactionIsolationLevel.Serializable)
 */
public class TransactionAttribute_IsolationSerializable
 
    extends ServicedComponent
{
} //TransactionAttribute_IsolationSerializable
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からTransaction.IsolationLevelを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTransaction.IsolationLevelを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTransaction.IsolationLevel を検索

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

辞書ショートカット

すべての辞書の索引

「Transaction.IsolationLevel」の関連用語

Transaction.IsolationLevelのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS