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

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

TransactionAttribute.Value プロパティ

トランザクションの TransactionOption 値を取得してオプショントランザクション サービス無効にます。

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

Dim instance As TransactionAttribute
Dim value As TransactionOption

value = instance.Value
public TransactionOption Value { get; }
public:
property TransactionOption Value {
    TransactionOption get ();
}
/** @property */
public TransactionOption get_Value ()
public function get Value
 () : TransactionOption

プロパティ
指定されトランザクション タイプ (TransactionOption 値)。

使用例使用例

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

<Transaction(TransactionOption.RequiresNew)>  _
Public Class TransactionAttribute_Value
    Inherits ServicedComponent
    
    Public Sub ValueExample() 
        ' Get the TransactionAttribute applied to the class.
        Dim attribute As TransactionAttribute
 = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(TransactionAttribute),
 False), TransactionAttribute)
        
        ' Display the value of the attribute's Value property.
        MsgBox("TransactionAttribute.Value: " &
 attribute.Value)
    
    End Sub 'ValueExample
End Class 'TransactionAttribute_Value
[Transaction(TransactionOption.RequiresNew)]
public class TransactionAttribute_Value : ServicedComponent
{
    public void ValueExample()
    {
        // Get the TransactionAttribute applied to the class.
        TransactionAttribute attribute =
            (TransactionAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(TransactionAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("TransactionAttribute.Value: {0}",
            attribute.Value);
    }
}
/** @attribute Transaction(TransactionOption.RequiresNew)
 */
public class TransactionAttribute_Value extends
 ServicedComponent
{
    public void ValueExample()
    {
        // Get the TransactionAttribute applied to the class.
        TransactionAttribute attribute = (TransactionAttribute)(
            Attribute.GetCustomAttribute(this.GetType(),
            TransactionAttribute.class.ToType(), false));

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS