DirectoryEntry.CopyTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建此条目的副本。
重载
| 名称 | 说明 |
|---|---|
| CopyTo(DirectoryEntry) |
创建此条目的副本作为指定父项的子级。 |
| CopyTo(DirectoryEntry, String) |
创建此 DirectoryEntry 对象的副本,作为指定父 DirectoryEntry 对象的子对象,具有指定的新名称。 |
CopyTo(DirectoryEntry)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- 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 不是容器。
注解
如果是UsePropertyCache,请调用true新对象以永久CommitChanges复制。
轻型目录访问协议 (LDAP) 提供程序当前不支持该方法 CopyTo(DirectoryEntry) 。
适用于
CopyTo(DirectoryEntry, String)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- 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
要创建的副本的父对象的 DN DirectoryEntry 。
- newName
- String
此条目的副本的名称。
返回
此条目的重命名副本作为指定父项的子级。
例外
指定的 DirectoryEntry 对象不是容器。
注解
轻型目录访问协议 (LDAP) 提供程序当前不支持此方法。
如果是UsePropertyCache,请调用true新对象以永久CommitChanges复制。