This document is archived and information here might be outdated.  Recommended version.


IServerObjectConfiguration2.ExtensionEnabled Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Server)  

IServerObjectConfiguration2.ExtensionEnabled Property

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IServerObjectConfiguration2 Interface