Export (0) Print
Expand All

RenameConfigurationPath Method

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
)

Parameters

configurationPath
Type: System..::..String
The old configuration path.
newConfigurationPath
Type: System..::..String
The new configuration path.

ExceptionCondition
System..::..ArgumentNullException

configurationPath or newConfigurationPath is nullNothingnullptrunita null reference (Nothing in Visual Basic) 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.

Community Additions

ADD
Show:
© 2015 Microsoft