This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectConfiguration Interface > IServerObjectConfiguration.MaxInstances Property (ArcObjects .NET 10.4 SDK) |
The maximum number of server object instances for a server object configuration.
[Visual Basic .NET] Public Property MaxInstances As Integer
[C#] public int MaxInstances {get; set;}
[C++]
HRESULT get_MaxInstances(
long* instances
);
[C++]
HRESULT put_MaxInstances(
long instances
);
[C++]
Parameters instances [out, retval] instances is a parameter of type long instances [in] instances is a parameter of type long
The MaxInstances property indicates the maximum number of server objects that can be running and handle requests at any one time. if the maximum number of server objects are running and busy, additional requests will be queued until a server object becomes free.
For a pooled server object, the MaxInstances represents the maximum simultaneus requests that can be processed by the server object configuration. For a non-pooled server object, the MaxInstances represents the maximum number of simlutaneus application users of that particular server object configuration.
The MaxInstances property must be greater than 0 and must be greater than the MinInstances property.