DirectoryEntry.CopyTo メソッド

定義

このエントリのコピーを作成します。

オーバーロード

名前 説明
CopyTo(DirectoryEntry)

指定した親の子としてこのエントリのコピーを作成します。

CopyTo(DirectoryEntry, String)

指定した新しい名前を持つ、指定した親DirectoryEntry オブジェクトの子として、このDirectoryEntry オブジェクトのコピーを作成します。

CopyTo(DirectoryEntry)

指定した親の子としてこのエントリのコピーを作成します。

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 はコンテナーではありません。

注釈

UsePropertyCachetrueされている場合は、新しいオブジェクトのCommitChangesを呼び出して、コピーを永続的にします。

ライトウェイト ディレクトリ アクセス プロトコル (LDAP) プロバイダーは現在、 CopyTo(DirectoryEntry) メソッドをサポートしていません。

適用対象

CopyTo(DirectoryEntry, String)

指定した新しい名前を持つ、指定した親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);
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) プロバイダーは現在、この方法をサポートしていません。

UsePropertyCachetrueされている場合は、新しいオブジェクトのCommitChangesを呼び出して、コピーを永続的にします。

こちらもご覧ください

適用対象