DirectoryEntry.MoveTo 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.
Moves this DirectoryEntry.
Overloads
MoveTo(DirectoryEntry) |
Moves this DirectoryEntry object to the specified parent. |
MoveTo(DirectoryEntry, String) |
Moves this DirectoryEntry object to the specified parent and changes its name to the specified value. |
MoveTo(DirectoryEntry)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
Moves this DirectoryEntry object to the specified parent.
public:
void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent);
member this.MoveTo : System.DirectoryServices.DirectoryEntry -> unit
Public Sub MoveTo (newParent As DirectoryEntry)
Parameters
- newParent
- DirectoryEntry
The parent to which you want to move this entry.
Exceptions
The specified DirectoryEntry is not a container.
Remarks
If UsePropertyCache is true
, call the CommitChanges method on the new object to make the move permanent.
See also
Applies to
MoveTo(DirectoryEntry, String)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
Moves this DirectoryEntry object to the specified parent and changes its name to the specified value.
public:
void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent, string? newName);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent, string newName);
member this.MoveTo : System.DirectoryServices.DirectoryEntry * string -> unit
Public Sub MoveTo (newParent As DirectoryEntry, newName As String)
Parameters
- newParent
- DirectoryEntry
The parent to which you want to move this entry.
- newName
- String
The new name of this entry.
Exceptions
The specified DirectoryEntry is not a container.
Remarks
If UsePropertyCache is true
, call CommitChanges on the new object to make the move permanent.
See also
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk