DirectoryEntry.CopyTo 메서드

정의

이 항목의 복사본을 만듭니다.

오버로드

CopyTo(DirectoryEntry)

이 엔트리를 복사하고 복사본을 지정된 부모의 자식으로 만듭니다.

CopyTo(DirectoryEntry, String)

새 이름을 지정하여 지정된 부모 DirectoryEntry 개체의 자식으로 이 DirectoryEntry 개체의 복사본을 만듭니다.

CopyTo(DirectoryEntry)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

이 엔트리를 복사하고 복사본을 지정된 부모의 자식으로 만듭니다.

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

매개 변수

newParent
DirectoryEntry

만들어지는 복사본의 부모가 될 DirectoryEntry 개체의 고유 이름입니다.

반환

새 부모의 자식인 이 엔트리의 복사본을 나타내는 DirectoryEntry 개체입니다.

예외

지정된 DirectoryEntry가 컨테이너가 아닌 경우

설명

가 이trueUsePropertyCache 새 개체를 호출 CommitChanges 하여 복사를 영구적으로 만듭니다.

LDAP(Lightweight Directory Access Protocol) 공급자는 현재 메서드를 CopyTo(DirectoryEntry) 지원하지 않습니다.

적용 대상

CopyTo(DirectoryEntry, String)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

새 이름을 지정하여 지정된 부모 DirectoryEntry 개체의 자식으로 이 DirectoryEntry 개체의 복사본을 만듭니다.

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

매개 변수

newParent
DirectoryEntry

만들어지는 복사본의 부모가 될 DirectoryEntry 개체의 DN입니다.

newName
String

이 엔트리의 복사본 이름입니다.

반환

이름이 바뀐 이 엔트리의 복사본으로, 지정된 부모의 자식입니다.

예외

지정된 DirectoryEntry 개체가 컨테이너가 아닌 경우

설명

LDAP(Lightweight Directory Access Protocol) 공급자는 현재 이 메서드를 지원하지 않습니다.

가 이trueUsePropertyCache 새 개체를 호출 CommitChanges 하여 복사를 영구적으로 만듭니다.

추가 정보

적용 대상