GetWebConfiguration Method (String, String)
Collapse the table of content
Expand the table of content

ServerManager.GetWebConfiguration Method (String, String)

 

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

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

public Configuration GetWebConfiguration(
	string siteName,
	string virtualPath
)

Parameters

siteName
Type: System.String

The name of a site.

virtualPath
Type: System.String

A virtual path that is under the specified 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:
© 2016 Microsoft