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

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

ObjectPoolingAttribute.Enabled プロパティ

オブジェクト プーリングが有効かどうかを示す値を取得または設定します

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

使用例使用例

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

<ObjectPooling(False)>  _
Public Class ObjectPoolingAttribute_Enabled
    Inherits ServicedComponent
    
    Public Sub EnabledExample() 
        ' Get the ObjectPoolingAttribute applied to the class.
        Dim attribute As ObjectPoolingAttribute
 = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(ObjectPoolingAttribute),
 False), ObjectPoolingAttribute)
        
        ' Display the current value of the attribute's Enabled property.
        MsgBox("ObjectPoolingAttribute.Enabled: "
 & attribute.Enabled)
        
        ' Set the Enabled property value of the attribute.
        attribute.Enabled = True
        
        ' Display the new value of the attribute's Enabled property.
        MsgBox("ObjectPoolingAttribute.Enabled: "
 & attribute.Enabled)
    
    End Sub 'EnabledExample
End Class 'ObjectPoolingAttribute_Enabled
[ObjectPooling(false)]
public class ObjectPoolingAttribute_Enabled
 : ServicedComponent
{
    public void EnabledExample()
    {
        // Get the ObjectPoolingAttribute applied to the class.
        ObjectPoolingAttribute attribute =
            (ObjectPoolingAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(ObjectPoolingAttribute),
            false);

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

        // Set the Enabled property value of the attribute.
        attribute.Enabled = true;

        // Display the new value of the attribute's Enabled property.
        Console.WriteLine("ObjectPoolingAttribute.Enabled: {0}",
            attribute.Enabled);
    }
}
[ObjectPooling(false)]
public ref class ObjectPoolingAttributeEnabled
 : public ServicedComponent
{
public:
    void EnabledExample()
    {
        // Get the ObjectPoolingAttribute applied to the class.
        ObjectPoolingAttribute^ attribute =
            (ObjectPoolingAttribute^)Attribute::GetCustomAttribute(
            this->GetType(),
            ObjectPoolingAttribute::typeid,
            false);

        // Display the current value of the attribute's Enabled property.
        Console::WriteLine("ObjectPoolingAttribute.Enabled: {0}",
            attribute->Enabled);

        // Set the Enabled property value of the attribute.
        attribute->Enabled = true;

        // Display the new value of the attribute's Enabled property.
        Console::WriteLine("ObjectPoolingAttribute.Enabled: {0}",
            attribute->Enabled);
    }
};
/** @attribute ObjectPooling(false)
 */
public class ObjectPoolingAttribute_Enabled
 extends ServicedComponent
{
    public void EnabledExample()
    {
        // Get the ObjectPoolingAttribute applied to the class.
        ObjectPoolingAttribute attribute = (ObjectPoolingAttribute)(
            Attribute.GetCustomAttribute(this.GetType(),
            ObjectPoolingAttribute.class.ToType(), false));

        // Display the current value of the attribute's Enabled property.
        Console.WriteLine("ObjectPoolingAttribute.Enabled: {0}",
            (System.Boolean)attribute.get_Enabled());

        // Set the Enabled property value of the attribute.
        attribute.set_Enabled(true);

        // Display the new value of the attribute's Enabled property.
        Console.WriteLine("ObjectPoolingAttribute.Enabled: {0}",
            (System.Boolean)attribute.get_Enabled());
    } //EnabledExample
} //ObjectPoolingAttribute_Enabled
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ObjectPoolingAttribute クラス
ObjectPoolingAttribute メンバ
System.EnterpriseServices 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS