profileId | ID of existing profile. |
newProfileId | New ID for profile. |
Renames the ID of a profile.
Changes the ID of the
Throws ArgumentNullException
if profileId
or newProfileId
is null. Throws ArgumentException
if profileId
is not available. Throws ArgumentException
if profile is read-only, i.e. IsProfileReadOnly returns true
for profileId
. Throws ArgumentException
if newProfileId
is already available, i.e. when GetAvailableProfileIds contains newProfileId
. Throws ArgumentException
if newProfileId is invalid.