DirectoryEntry.MoveTo Method
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.
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. |
- Source:
- DirectoryEntry.cs
- 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
.NET 10 (package-provided) a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- DirectoryEntry.cs
- 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
.NET 10 (package-provided) a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: