DirectoryEntry.MoveTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移動此 DirectoryEntry。
多載
| 名稱 | Description |
|---|---|
| MoveTo(DirectoryEntry) |
將此 DirectoryEntry 物件移至指定的父物件。 |
| MoveTo(DirectoryEntry, String) |
將此 DirectoryEntry 物件移至指定的父物件,並將其名稱更改為指定的值。 |
MoveTo(DirectoryEntry)
將此 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 不是容器。
備註
若 UsePropertyCache 是 true,則呼叫 CommitChanges 新物件上的方法使移動永久。
另請參閱
適用於
MoveTo(DirectoryEntry, String)
將此 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 不是容器。
備註
若 UsePropertyCache 是 true,則呼叫 CommitChanges 新物件使移動永久。