ManagementAuthorization.RenameConfigurationPath(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Renames a configuration path.
public:
static void RenameConfigurationPath(System::String ^ configurationPath, System::String ^ newConfigurationPath);
public static void RenameConfigurationPath (string configurationPath, string newConfigurationPath);
static member RenameConfigurationPath : string * string -> unit
Public Shared Sub RenameConfigurationPath (configurationPath As String, newConfigurationPath As String)
Parameters
- configurationPath
- String
The old configuration path.
- newConfigurationPath
- String
The new configuration path.
Exceptions
configurationPath
or newConfigurationPath
is null
or empty.
Remarks
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.