語言

DirectoryEntry.CopyTo 方法

定義

建立此條目的副本。

多載

名稱 Description
CopyTo(DirectoryEntry)

建立此條目的一份子項目的複製品,作為指定父項目的子節點。

CopyTo(DirectoryEntry, String)

建立此 DirectoryEntry 物件的複製品,作為指定父 DirectoryEntry 物件的子物件,並以指定新名稱建立。

CopyTo(DirectoryEntry)

來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
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 不是容器。

備註

若 UsePropertyCache 是 true,則呼叫 CommitChanges 新物件使複製永久。

輕量級目錄存取協定(LDAP)提供者目前不支援此 CopyTo(DirectoryEntry) 方法。

適用於

CopyTo(DirectoryEntry, String)

來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
DirectoryEntry.cs
來源:
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

就是將作為所建立複製品父物件的DN DirectoryEntry 。

newName
String

本條目的副本名稱。

傳回

此條目的重新命名為指定父項目的子目錄副本。

例外狀況

指定的 DirectoryEntry 物件不是容器。

備註

輕量目錄存取協定(LDAP)提供者目前不支援此方法。

若 UsePropertyCache 是 true,則呼叫 CommitChanges 新物件使複製永久。

另請參閱

適用於