Share via


ServerManager.GetAdministrationConfiguration Method

Definition

Returns a Configuration object for the Administration.config file.

Overloads

GetAdministrationConfiguration()

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

GetAdministrationConfiguration(WebConfigurationMap, String)

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

GetAdministrationConfiguration()

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

public:
 Microsoft::Web::Administration::Configuration ^ GetAdministrationConfiguration();
public Microsoft.Web.Administration.Configuration GetAdministrationConfiguration ();
member this.GetAdministrationConfiguration : unit -> Microsoft.Web.Administration.Configuration
Public Function GetAdministrationConfiguration () As Configuration

Returns

A Configuration object for the default Administration.config file.

Remarks

This overload returns the Administration.config file that is located in the default configuration file path in the %system%\inetsrv\config directory. To specify a custom WebConfigurationMap object and configuration file path, use the GetAdministrationConfiguration(WebConfigurationMap, String) overload of this method.

Applies to

GetAdministrationConfiguration(WebConfigurationMap, String)

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

public:
 Microsoft::Web::Administration::Configuration ^ GetAdministrationConfiguration(Microsoft::Web::Administration::WebConfigurationMap ^ configMap, System::String ^ configurationPath);
public Microsoft.Web.Administration.Configuration GetAdministrationConfiguration (Microsoft.Web.Administration.WebConfigurationMap configMap, string configurationPath);
member this.GetAdministrationConfiguration : Microsoft.Web.Administration.WebConfigurationMap * string -> Microsoft.Web.Administration.Configuration
Public Function GetAdministrationConfiguration (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 Administration.config file.

Remarks

Use this overload to specify a custom WebConfigurationMap object and configuration file path. Use the GetAdministrationConfiguration() overload, which takes no parameters, to return the Administration.config file that is located in the default configuration file path in the %system%\inetsrv\config directory.

Applies to