Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ObjectPoolingAttribute Constructor (Int32, Int32)

 

Initializes a new instance of the ObjectPoolingAttribute class and sets the MaxPoolSize and MinPoolSize properties.

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

public:
ObjectPoolingAttribute(
	int minPoolSize,
	int maxPoolSize
)

Parameters

minPoolSize
Type: System::Int32

The minimum pool size.

maxPoolSize
Type: System::Int32

The maximum pool size.

The following code example creates a new ObjectPoolingAttribute.

[ObjectPooling(1, 10)]
public ref class ObjectPoolingAttributeCtorIntInt : public ServicedComponent
{
};

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft