ServerManager Class
TOC
Collapse the table of content
Expand the table of content

ServerManager Class

IIS 7.0
 

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

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

System.Object
  Microsoft.Web.Administration.ServerManager

<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)>
Public NotInheritable Class ServerManager
	Implements IDisposable

NameDescription
System_CAPS_pubmethodServerManager()

Initializes a new instance of the ServerManager class by using the default path of the ApplicationHost.config file.

NameDescription
System_CAPS_pubpropertyApplicationDefaults

Gets an object that defines the default values for applications that are configured on the current server.

System_CAPS_pubpropertyApplicationPoolDefaults

Gets an object that defines the default values for application pools that are configured on the current server.

System_CAPS_pubpropertyApplicationPools

Gets a collection of application pools on the current server.

System_CAPS_pubpropertySiteDefaults

Gets an object that defines the default values for sites that are configured on the current server.

System_CAPS_pubpropertySites

Gets the collection of Web sites that are configured on the current server.

System_CAPS_pubpropertyVirtualDirectoryDefaults

Gets an object that defines the default values for all virtual directories that are configured on the current server.

System_CAPS_pubpropertyWorkerProcesses

Gets a collection of worker processes on the current server.

NameDescription
System_CAPS_pubmethodCommitChanges()

Commits changes to the IIS 7 configuration system.

System_CAPS_pubmethodDispose()

Releases all resources used by the ServerManager class.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetAdministrationConfiguration()

Returns a Configuration object for the default Administration.config file.

System_CAPS_pubmethodGetAdministrationConfiguration(WebConfigurationMap, String)

Returns a Configuration object for the Administration.config file by using the specified WebConfigurationMap object and configuration file path.

System_CAPS_pubmethodGetApplicationHostConfiguration()

Returns a Configuration object for the default ApplicationHost.config file.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMetadata(String)

Returns metadata values from the server manager.

System_CAPS_pubmethodGetRedirectionConfiguration()

Returns the configuration from the configuration manager.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetWebConfiguration(String)

Returns a Configuration object for a Web.config file by using the specified Web site name.

System_CAPS_pubmethodGetWebConfiguration(String, String)

Returns a Configuration object for a Web.config file by using the specified Web site name and virtual path.

System_CAPS_pubmethodGetWebConfiguration(WebConfigurationMap, String)

Returns a Configuration object for a Web.config file by using the specified WebConfigurationMap object and configuration file path.

System_CAPS_pubmethodSystem_CAPS_staticOpenRemote(String)

Creates a ServerManager object that is connected to a remote system.

System_CAPS_pubmethodSetMetadata(String, Object)

Adds or changes the metadata for the current server manager.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Releases the unmanaged resources used by the ServerManager.

The ServerManager object is the top-level configuration object. You can access the Application collection, Site collection, WorkerProcess collections, Binding objects, and VirtualDirectory collections from the ServerManager. The properties that the ServerManager class exposes are read-only. However, the objects that the properties of this class return provide both read and write access. Updates made to configuration objects must be explicitly written to the configuration system by using the CommitChanges method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft