ServerManager.GetWebConfiguration Method (String)

 

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

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

public Configuration GetWebConfiguration(
	string siteName
)

Parameters

siteName
Type: System.String

The name of a site.

Return Value

Type: Microsoft.Web.Administration.Configuration

A Configuration object for the Web.config file.

Exception Condition
System.ObjectDisposedException

The configuration manager is null.

Return to top
Show: