Share via


ServerManager.GetWebConfiguration Method

Definition

Returns a Configuration object for a Web.config file.

Overloads

GetWebConfiguration(String)

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

GetWebConfiguration(WebConfigurationMap, String)

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

GetWebConfiguration(String, String)

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

GetWebConfiguration(String)

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

public:
 Microsoft::Web::Administration::Configuration ^ GetWebConfiguration(System::String ^ siteName);
public Microsoft.Web.Administration.Configuration GetWebConfiguration (string siteName);
member this.GetWebConfiguration : string -> Microsoft.Web.Administration.Configuration
Public Function GetWebConfiguration (siteName As String) As Configuration

Parameters

siteName
String

The name of a site.

Returns

A Configuration object for the Web.config file.

Exceptions

The configuration manager is null.

Applies to

GetWebConfiguration(WebConfigurationMap, String)

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

public:
 Microsoft::Web::Administration::Configuration ^ GetWebConfiguration(Microsoft::Web::Administration::WebConfigurationMap ^ configMap, System::String ^ configurationPath);
public Microsoft.Web.Administration.Configuration GetWebConfiguration (Microsoft.Web.Administration.WebConfigurationMap configMap, string configurationPath);
member this.GetWebConfiguration : Microsoft.Web.Administration.WebConfigurationMap * string -> Microsoft.Web.Administration.Configuration
Public Function GetWebConfiguration (configMap As WebConfigurationMap, configurationPath As String) As Configuration

Parameters

configMap
WebConfigurationMap

A custom WebConfigurationMap object.

configurationPath
String

A custom configuration file path.

Returns

A Configuration object for the Web.config file.

Exceptions

configMap is null.

Applies to

GetWebConfiguration(String, String)

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

public:
 Microsoft::Web::Administration::Configuration ^ GetWebConfiguration(System::String ^ siteName, System::String ^ virtualPath);
public Microsoft.Web.Administration.Configuration GetWebConfiguration (string siteName, string virtualPath);
member this.GetWebConfiguration : string * string -> Microsoft.Web.Administration.Configuration
Public Function GetWebConfiguration (siteName As String, virtualPath As String) As Configuration

Parameters

siteName
String

The name of a site.

virtualPath
String

A virtual path that is under the specified site.

Returns

A Configuration object for the Web.config file.

Exceptions

The configuration manager is null.

Applies to