TransactionAttribute.Isolation プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TransactionAttribute.Isolation プロパティの意味・解説 

TransactionAttribute.Isolation プロパティ

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

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

Public Property Isolation As
 TransactionIsolationLevel
Dim instance As TransactionAttribute
Dim value As TransactionIsolationLevel

value = instance.Isolation

instance.Isolation = value
public TransactionIsolationLevel Isolation { get;
 set; }
public:
property TransactionIsolationLevel Isolation {
    TransactionIsolationLevel get ();
    void set (TransactionIsolationLevel value);
}
/** @property */
public TransactionIsolationLevel get_Isolation ()

/** @property */
public void set_Isolation (TransactionIsolationLevel
 value)
public function get Isolation
 () : TransactionIsolationLevel

public function set Isolation
 (value : TransactionIsolationLevel)

プロパティ
TransactionIsolationLevel 値の 1 つ

使用例使用例

Transaction 属性Isolation プロパティの値の取得設定を行うコード例次に示します

<Transaction(Isolation := TransactionIsolationLevel.Serializable)>  _
Public Class TransactionAttribute_Isolation
    Inherits ServicedComponent
    
    Public Sub IsolationExample() 
        ' Get the TransactionAttribute applied to the class.
        Dim attribute As TransactionAttribute
 = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(TransactionAttribute),
 False), TransactionAttribute)
        
        ' Display the current value of the attribute's Isolation property.
        MsgBox("TransactionAttribute.Isolation: "
 & attribute.Isolation)
        
        ' Set the Isolation property value of the attribute.
        attribute.Isolation = TransactionIsolationLevel.RepeatableRead
        
        ' Display the new value of the attribute's Isolation property.
        MsgBox("TransactionAttribute.Isolation: "
 & attribute.Isolation)
    
    End Sub 'IsolationExample
End Class 'TransactionAttribute_Isolation
[Transaction(Isolation=TransactionIsolationLevel.Serializable)]
public class TransactionAttribute_Isolation
 : ServicedComponent
{
    public void IsolationExample()
    {
        // Get the TransactionAttribute applied to the class.
        TransactionAttribute attribute =
            (TransactionAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(TransactionAttribute),
            false);

        // Display the current value of the attribute's Isolation property.
        Console.WriteLine("TransactionAttribute.Isolation: {0}",
            attribute.Isolation);

        // Set the Isolation property value of the attribute.
        attribute.Isolation = TransactionIsolationLevel.RepeatableRead;

        // Display the new value of the attribute's Isolation property.
        Console.WriteLine("TransactionAttribute.Isolation: {0}",
            attribute.Isolation);
    }
}
/** @attribute Transaction(Isolation = TransactionIsolationLevel.Serializable)
 */
public class TransactionAttribute_Isolation
 extends ServicedComponent
{
    public void IsolationExample()
    {
        // Get the TransactionAttribute applied to the class.
        TransactionAttribute attribute = (TransactionAttribute)(
            Attribute.GetCustomAttribute(this.GetType(),
            TransactionAttribute.class.ToType(), false));

        // Display the current value of the attribute's Isolation property.
        Console.WriteLine("TransactionAttribute.Isolation: {0}",
            attribute.get_Isolation());

        // Set the Isolation property value of the attribute.
        attribute.set_Isolation(TransactionIsolationLevel.RepeatableRead);

        // Display the new value of the attribute's Isolation property.
        Console.WriteLine("TransactionAttribute.Isolation: {0}",
            attribute.get_Isolation());
    } //IsolationExample
} //TransactionAttribute_Isolation
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS