ManagementAuthorization.RenameConfigurationPath Method (String, String)

IIS 7.0

Renames a configuration path.

Namespace:   Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public static void RenameConfigurationPath(
	string configurationPath,
	string newConfigurationPath


Type: System.String

The old configuration path.

Type: System.String

The new configuration path.

Exception Condition

configurationPath or newConfigurationPath is null or empty.

This method changes the path from the value of the configurationPath parameter to the value of the newConfigurationPath parameter. Changing the path name modifies the Administration.config file.

The scope of the newConfigurationPath contains the list of authorized users who were previously in the scope of the configurationPath. After this method changes the configuration path, configurationPath contains no authorized users.

Return to top