Share via


ManagementAuthorization.RenameConfigurationPath(String, String) Method

Definition

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.

Applies to