DirectoryEntry.MoveTo 方法

定义

移动此 DirectoryEntry

重载

MoveTo(DirectoryEntry)

将此 DirectoryEntry 对象移至指定父级。

MoveTo(DirectoryEntry, String)

将此 DirectoryEntry 对象移至指定父级,并将其名称变更为指定值。

MoveTo(DirectoryEntry)

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

将此 DirectoryEntry 对象移至指定父级。

public:
 void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent);
member this.MoveTo : System.DirectoryServices.DirectoryEntry -> unit
Public Sub MoveTo (newParent As DirectoryEntry)

参数

newParent
DirectoryEntry

要将此项移动到的父级。

例外

指定的 DirectoryEntry 不是容器。

注解

如果 UsePropertyCachetrue,则对新对象调用 CommitChanges 方法以使移动永久。

另请参阅

适用于

MoveTo(DirectoryEntry, String)

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

将此 DirectoryEntry 对象移至指定父级,并将其名称变更为指定值。

public:
 void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent, string newName);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent, string? newName);
member this.MoveTo : System.DirectoryServices.DirectoryEntry * string -> unit
Public Sub MoveTo (newParent As DirectoryEntry, newName As String)

参数

newParent
DirectoryEntry

要将此项移动到的父级。

newName
String

此项的新名称。

例外

指定的 DirectoryEntry 不是容器。

注解

如果 UsePropertyCachetrue,则调用 CommitChanges 新对象以使移动永久。

另请参阅

适用于