DirectoryEntry.MoveTo Metod

Definition

Flyttar den här DirectoryEntry.

Överlagringar

Name Description
MoveTo(DirectoryEntry)

Flyttar det här DirectoryEntry objektet till det angivna överordnade objektet.

MoveTo(DirectoryEntry, String)

Flyttar det här DirectoryEntry objektet till det angivna överordnade objektet och ändrar dess namn till det angivna värdet.

MoveTo(DirectoryEntry)

Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs

Flyttar det här DirectoryEntry objektet till det angivna överordnade objektet.

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)

Parametrar

newParent
DirectoryEntry

Den överordnade post som du vill flytta posten till.

Undantag

Den angivna DirectoryEntry är inte en container.

Kommentarer

Om UsePropertyCache är trueanropar du CommitChanges metoden för det nya objektet för att göra flytten permanent.

Se även

Gäller för

MoveTo(DirectoryEntry, String)

Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs
Källa:
DirectoryEntry.cs

Flyttar det här DirectoryEntry objektet till det angivna överordnade objektet och ändrar dess namn till det angivna värdet.

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)

Parametrar

newParent
DirectoryEntry

Den överordnade post som du vill flytta posten till.

newName
String

Det nya namnet på den här posten.

Undantag

Den angivna DirectoryEntry är inte en container.

Kommentarer

Om UsePropertyCache är trueanropar du CommitChanges det nya objektet för att göra flytten permanent.

Se även

Gäller för