This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectConfiguration2 Interface > IServerObjectConfiguration2.ExtensionEnabled Property (ArcObjects .NET 10.4 SDK) |
Indicates whether the state of the named extension is Enabled (true) or Disabled (false).
[Visual Basic .NET] Public Function get_ExtensionEnabled ( _ ByVal Name As String _ ) As Boolean
[Visual Basic .NET] Public Sub set_ExtensionEnabled ( _ ByVal Name As String, _ ByVal pVal As Boolean _ )
[C#] public bool get_ExtensionEnabled ( string Name );
[C#] public void set_ExtensionEnabled ( string Name, bool pVal );
[C++]
HRESULT get_ExtensionEnabled(
BSTR Name,
VARIANT_BOOL* pVal
);
[C++]
HRESULT put_ExtensionEnabled(
BSTR Name,
VARIANT_BOOL pVal
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR pVal [out, retval] pVal is a parameter of type VARIANT_BOOL Name [in] Name is a parameter of type BSTR pVal [in] pVal is a parameter of type VARIANT_BOOL
When you create a server object configuration, all the server object extensions that are installed on the GIS server for the configuration's server object type are by default disabled, unless you enable them by setting the ExtensionEnabled property to true for the extension you want to enable.
You can do this before creating the configuration using IServerObjectAdmin::AddConfiguration, or you can enable an extension for an existing configuration using the IServerObjectAdmin::UpdateConfiguration.