次の方法で共有


親オブジェクトへの移動

DirectoryEntry には、接続しているオブジェクトからその親オブジェクトへの移動に使用される Parent プロパティもあります。

次のコード例は、親オブジェクトへの移動方法を示しています。

Dim parent As DirectoryEntry = entry.Parent
 Console.WriteLine(parent.Name)
DirectoryEntry parent = ent.Parent;
Console.WriteLine(parent.Name);

関連項目

リファレンス

System.DirectoryServices
DirectoryEntry

概念

ディレクトリ内の移動

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.