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


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 プロパティのページへのリンク