DirectoryEntry.Rename(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.
Changes the name of this DirectoryEntry object.
public:
void Rename(System::String ^ newName);
public void Rename (string? newName);
public void Rename (string newName);
member this.Rename : string -> unit
Public Sub Rename (newName As String)
Parameters
- newName
- String
The new name of the entry.
Remarks
Note
This will also affect the path that is used to refer to this entry.
If UsePropertyCache is true
, be sure to call the CommitChanges method on the new object to make the move permanent.
Applies to
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.