mkoneya

IServerObjectExtensionType is Enabled?

Discussion created by mkoneya on Jul 27, 2011
Latest reply on Jul 28, 2011 by mkoneya
I am trying to determine if the Feature Access capablity has been enabled on an IServerObjectAdmin2.    I can get a list of the IServerObjectExtensionTypes as shown below, but how can I tell if the IServerObjectExtensionType is enabled?

private static void listServices()
        {
            IServerObjectAdmin2 soAdmin = (IServerObjectAdmin2)gisServerConnection.ServerObjectAdmin;
            IEnumServerObjectConfiguration enumConfigs = soAdmin.GetConfigurations();
            enumConfigs.Reset();

            IServerObjectConfiguration soConfig = enumConfigs.Next();

            while (soConfig != null)
            {
                IServerObjectConfigurationStatus soConfigSatus = soAdmin.GetConfigurationStatus(soConfig.Name, soConfig.TypeName);
                serviceTable.Rows.Add(soConfig.Name, soConfig.TypeName);

                IEnumServerObjectExtensionType enumServerObjectExtensionType = soAdmin.GetExtensionTypes(soConfig.TypeName);

                enumServerObjectExtensionType.Reset();
                IServerObjectExtensionType serverObjectExtensionType = enumServerObjectExtensionType.Next();

                while (serverObjectExtensionType != null)
                {
                    MessageBox.Show(serverObjectExtensionType.Name);
                    serverObjectExtensionType = enumServerObjectExtensionType.Next();
                }

                soConfig = enumConfigs.Next();
            }

        }

Thanks for your assistance,

Mele

Outcomes