ObjectPoolingAttribute Constructor (Boolean)

 

Initializes a new instance of the ObjectPoolingAttribute class and sets the Enabled property.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public:
ObjectPoolingAttribute(
	bool enable
)

Parameters

enable
Type: System::Boolean

true to enable object pooling; otherwise, false.

The following code example creates a new ObjectPoolingAttribute.

[ObjectPooling(true)]
public ref class ObjectPoolingAttributeCtorBool : public ServicedComponent
{
};

.NET Framework
Available since 1.1
Return to top
Show: