DirectoryEntry.CopyTo Metod

Definition

Skapar en kopia av den här posten.

Överlagringar

Name Description
CopyTo(DirectoryEntry)

Skapar en kopia av den här posten som underordnad den angivna överordnade posten.

CopyTo(DirectoryEntry, String)

Skapar en kopia av det här DirectoryEntry objektet, som underordnat det angivna överordnade DirectoryEntry objektet, med det angivna nya namnet.

CopyTo(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

Skapar en kopia av den här posten som underordnad den angivna överordnade posten.

public:
 System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent);
member this.CopyTo : System.DirectoryServices.DirectoryEntry -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry) As DirectoryEntry

Parametrar

newParent
DirectoryEntry

Det unika namnet på objektet DirectoryEntry som ska vara överordnat för kopian som skapas.

Returer

Ett DirectoryEntry objekt som representerar kopian av den här posten som underordnad den nya överordnade posten.

Undantag

Den angivna DirectoryEntry är inte en container.

Kommentarer

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

LDAP-providern (Lightweight Directory Access Protocol) stöder CopyTo(DirectoryEntry) för närvarande inte metoden.

Gäller för

CopyTo(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

Skapar en kopia av det här DirectoryEntry objektet, som underordnat det angivna överordnade DirectoryEntry objektet, med det angivna nya namnet.

public:
 System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string? newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string newName);
member this.CopyTo : System.DirectoryServices.DirectoryEntry * string -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry, newName As String) As DirectoryEntry

Parametrar

newParent
DirectoryEntry

DN för objektet DirectoryEntry som ska vara överordnat för kopian som skapas.

newName
String

Namnet på kopian av den här posten.

Returer

En omdöpt kopia av den här posten som underordnad den angivna överordnade posten.

Undantag

Det angivna DirectoryEntry objektet är inte en container.

Kommentarer

LDAP-providern (Lightweight Directory Access Protocol) stöder för närvarande inte den här metoden.

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

Se även

Gäller för