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

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

TransactionAttribute.Timeout プロパティ

このトランザクションタイムアウト取得または設定します

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

使用例使用例

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
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS