Microsoft.Web.Administration Namespace

The Microsoft.Web.Administration namespace contains classes that a developer can use to administer IIS Manager. With the classes in this namespace, an administrator can read and write configuration information to ApplicationHost.config, Web.config, and Administration.config files.

Classes

Application

Defines properties common to all applications in Internet Information Services (IIS).

ApplicationCollection

Represents a collection of Application objects for a Site object.

ApplicationDefaults

Defines the default values for applications that are created for a Web site.

ApplicationDomain

Represents the isolated environment for managed applications in a worker process.

ApplicationDomainCollection

Represents a collection of ApplicationDomain objects.

ApplicationPool

Provides methods and properties to configure and manage IIS 7 application pools.

ApplicationPoolCollection

Represents a collection of ApplicationPool objects.

ApplicationPoolCpu

Configures default values for CPU usage parameters and CPU actions that all application pools on a server use.

ApplicationPoolDefaults

Configures default values for all application pools on a Web server.

ApplicationPoolFailure

Defines the actions to take when an application pool fails.

ApplicationPoolPeriodicRestart

Specifies conditions that govern application pool recycling.

ApplicationPoolProcessModel

Represents the process model settings for an application pool.

ApplicationPoolRecycling

Configures recycling settings for an application pool.

Binding

Represents the binding instructions for a Web site.

BindingCollection

Represents a collection of bindings.

Configuration

Represents a configuration file for a particular computer, application, or resource.

ConfigurationAttribute

Represents a single property in a configuration element.

ConfigurationAttributeCollection

Represents a collection of related configuration attributes.

ConfigurationAttributeSchema

Provides access to the attributes that define the schema for a configuration attribute.

ConfigurationAttributeSchemaCollection

Represents a collection of ConfigurationAttributeSchema objects.

ConfigurationChildElementCollection

Represents a collection of related child configuration elements.

ConfigurationCollectionSchema

Represents the schema for a collection in the IIS 7 configuration system.

ConfigurationElement

Represents an element in a configuration file.

ConfigurationElementCollection

Represents a collection of configuration elements.

ConfigurationElementCollectionBase<T>

Provides the abstract base class for a strongly typed collection of configuration elements.

ConfigurationElementSchema

Represents the schema for a configuration element.

ConfigurationElementSchemaCollection

Represents a collection of ConfigurationElementSchema objects.

ConfigurationEnumValue

Defines an attribute in the IIS 7 configuration system that validates against a list of accepted schema-defined values.

ConfigurationEnumValueCollection

Represents a collection of configuration enumeration values.

ConfigurationMethod

Represents a method that is implemented as an IIS configuration extension.

ConfigurationMethodCollection

Represents a collection of configuration methods.

ConfigurationMethodInstance

Represents an instance of a ConfigurationMethod.

ConfigurationMethodSchema

Provides access to the method that defines the schema for a configuration method.

ConfigurationSection

Represents a section of configuration data in the IIS 7 configuration system.

CustomLogField
CustomLogFieldCollection
Request

Represents a single request to an IIS 7 server.

RequestCollection

Represents a collection of active requests in a worker process.

Schedule

Defines the schedule for a single event.

ScheduleCollection

Represents a collection of Schedule objects.

SectionDefinition

Defines a configuration section.

SectionDefinitionCollection

Represents a collection of related SectionDefinition objects.

SectionGroup

Provides access to a group of related configuration section groups or configuration section definitions.

SectionGroupCollection

Represents a collection of related SectionGroup objects.

ServerManager

Provides read and write access to the IIS 7 configuration system.

ServerManagerException

The exception that is thrown when the server manager is unable to perform a requested operation.

Site

Defines a properties and methods common to all Web sites configured in IIS.

SiteCollection

Represents a collection of Site objects.

SiteDefaults

Contains the default values for IIS 7 Web site properties.

SiteLimits

Exposes connection-related limits for a Web site.

SiteLogFile

Configures logging for a Web site.

SiteTraceFailedRequestsLogging

Configures log settings for failed requests.

VirtualDirectory

Defines methods and properties that are common to all virtual directories in IIS 7.

VirtualDirectoryCollection

Represents a collection of virtual directories for a particular application or site context.

VirtualDirectoryDefaults

Defines the default values for virtual directories that are created for an application or Web site.

WebConfigurationManager

Provides access to configuration files for Web applications.

WebConfigurationMap

Specifies the paths of the Machine.config and Web.config files.

WorkerProcess

Defines methods and properties that are common to all worker processes in IIS 7.

WorkerProcessCollection

Represents a collection of WorkerProcess objects.

Enums

AuthenticationLogonMethod

Specifies the kind of authentication that you can use to establish a logon session for a secured virtual directory.

CustomLogFieldSourceType
IdleTimeoutAction
LoadBalancerCapabilities

Specifies the response to the client when an XML Web service is unavailable.

LogExtFileFlags

Contains flags that determine which categories of information are written to the log file or data source during logging events.

LogFormat

Specifies the formatting to use for recording the log file.

LoggingRolloverPeriod

Determines when a new IIS log file is created.

LogTargetW3C
ManagedPipelineMode

Determines how the server processes requests for managed code.

ObjectState

Specifies the running state of an IIS object.

OverrideMode

Specifies the override behavior of a configuration section.

PipelineState

Specifies the current execution status of the request process.

ProcessModelIdentityType

Specifies the process model identity of an application pool.

ProcessModelLogEventOnProcessModel
ProcessorAction

Specifies the action that IIS takes when an application pool exceeds the CPU limit specified by the Limit property.

RecyclingLogEventOnRecycle

Defines the reasons for application pool recycling that will cause IIS to log an event.

SslFlags
StartMode
WorkerProcessState

Indicates the running state for a worker process.

Remarks

The classes in the Microsoft.Web.Administration namespace contain a series of convenient top-level objects that allow the developer to perform administrative tasks. The different logical objects available include sites, applications, application pools, application domains, virtual directories, and worker processes. You can use the API to obtain and work with the configuration and state of these objects and to perform such actions as creating a site, starting or stopping a site, deleting an application pool, recycling an application pool, and even unloading application domains.