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

Dim instance As TransactionAttribute Dim value As TransactionIsolationLevel value = instance.Isolation instance.Isolation = value
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


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


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

- TransactionAttribute.Isolation プロパティのページへのリンク