ObjectPoolingAttribute.Enabled プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文Dim instance As ObjectPoolingAttribute Dim value As Boolean value = instance.Enabled instance.Enabled = value
/** @property */ public boolean get_Enabled () /** @property */ public void set_Enabled (boolean value)
オブジェクト プーリングが有効な場合は true。それ以外の場合は false。既定値は true です。
使用例ObjectPoolingAttribute の Enabled プロパティの値の取得と設定を行うコード例を次に示します。
<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 のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からObjectPoolingAttribute.Enabled プロパティを検索する場合は、下記のリンクをクリックしてください。
                     全ての辞書からObjectPoolingAttribute.Enabled プロパティ
                    を検索
                - ObjectPoolingAttribute.Enabled プロパティのページへのリンク