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

Dim instance As TransactionAttribute Dim value As Integer value = instance.Timeout instance.Timeout = value
トランザクションのタイムアウト (秒)。

Transaction 属性の Timeout プロパティの値の取得と設定を行うコード例を次に示します。
<Transaction(Timeout := 30)> _ Public Class TransactionAttribute_Timeout Inherits ServicedComponent Public Sub TimeoutExample() ' 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 Timeout property. MsgBox("TransactionAttribute.Timeout: " & attribute.Timeout) ' Set the Timeout property value of the attribute to sixty ' seconds. attribute.Timeout = 60 ' Display the new value of the attribute's Timeout property. MsgBox("TransactionAttribute.Timeout: " & attribute.Timeout) End Sub 'TimeoutExample End Class 'TransactionAttribute_Timeout
[Transaction(Timeout=30)] public class TransactionAttribute_Timeout : ServicedComponent { public void TimeoutExample() { // 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 Timeout property. Console.WriteLine("TransactionAttribute.Timeout: {0}", attribute.Timeout); // Set the Timeout property value of the attribute to sixty // seconds. attribute.Timeout = 60; // Display the new value of the attribute's Timeout property. Console.WriteLine("TransactionAttribute.Timeout: {0}", attribute.Timeout); } }
/** @attribute Transaction(Timeout = 30) */ public class TransactionAttribute_Timeout extends ServicedComponent { public void TimeoutExample() { // 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 Timeout property. Console.WriteLine("TransactionAttribute.Timeout: {0}", (System.Int16)attribute.get_Timeout()); // Set the Timeout property value of the attribute to sixty // seconds. attribute.set_Timeout(60); // Display the new value of the attribute's Timeout property. Console.WriteLine("TransactionAttribute.Timeout: {0}", (System.Int16)attribute.get_Timeout()); } //TimeoutExample } //TransactionAttribute_Timeout


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.Timeout プロパティを検索する場合は、下記のリンクをクリックしてください。

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