This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectAdmin Interface > IServerObjectAdmin.GetConfigurationStatus Method (ArcObjects .NET 10.5 SDK) |
Get the configuration status for a server object configuration with the specified Name and TypeName.
[Visual Basic .NET] Public Function GetConfigurationStatus ( _ ByVal Name As String, _ ByVal TypeName As String _ ) As IServerObjectConfigurationStatus
[C#] public IServerObjectConfigurationStatus GetConfigurationStatus ( string Name, string TypeName );
[C++]
HRESULT GetConfigurationStatus(
BSTR Name,
BSTR TypeName,
IServerObjectConfigurationStatus** ppStatus
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR TypeName [in] TypeName is a parameter of type BSTR ppStatus [out, retval]
ppStatus is a parameter of type IServerObjectConfigurationStatus
The GetConfigurationStatus method will return the IServerObjectConfigurationStatus interface on a particular server object configuration. This interface provides information as to the number of instances of that configuration that are running, and the number in use. It provides information as to the startup status of the configuration.
You can use this interface to monitor server object configuration usage. For example, you can use the InstanceInUseCount to determine if any instances of the configuration are in use before stopping the configuration.