DirectoryEntry.Rename(String) DirectoryEntry.Rename(String) DirectoryEntry.Rename(String) DirectoryEntry.Rename(String) Method

定義

變更這個 DirectoryEntry 物件的名稱。Changes the name of this DirectoryEntry object.

public:
 void Rename(System::String ^ newName);
public void Rename (string newName);
member this.Rename : string -> unit
Public Sub Rename (newName As String)

參數

newName
String String String String

項目的新名稱。The new name of the entry.

備註

注意

這也會影響用來參考此專案的路徑。This will also affect the path that is used to refer to this entry.

如果UsePropertyCache CommitChangestrue,請務必在新的物件上呼叫方法,使移動成為永久的。If UsePropertyCache is true, be sure to call the CommitChanges method on the new object to make the move permanent.

適用於

另請參閱