Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

ExceptionCondition
System..::..ObjectDisposedException

The configuration manager is nullNothingnullptrunita null reference (Nothing in Visual Basic).

Community Additions

ADD
Show:
© 2015 Microsoft