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.CreateConfiguration Method (ArcObjects .NET 10.5 SDK) |
Creates a new server object configuration.
[Visual Basic .NET] Public Function CreateConfiguration ( _ ) As IServerObjectConfiguration
[C#] public IServerObjectConfiguration CreateConfiguration ( );
[C++]
HRESULT CreateConfiguration(
IServerObjectConfiguration** config
);
[C++]
Parameters config [out, retval]
config is a parameter of type IServerObjectConfiguration
The CreateConfiguration method will create a new ServerObjectConfiguration that you can add to your ArcGIS Server. The CreateConfiguration method returns the IServerObjectConfiguration interface on the new ServerObjectConfiguration. Use the IServerObjectConfiguration interface to set the various properties of the configuration, then use the AddConfiguration method on IServerObjectAdmin to add the new configuration to the ArcGIS Server.
Once a configuration is added to the server, you can use the StartConfiguration and EnableConfiguration to make it available for applications to use.