Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / October 2007

Tip: Looking for answers? Try searching our database.

How can I retrieve all the sibling domains in a forest?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pucca - 02 Oct 2007 16:22 GMT
Hi, I'm using vs2005, .net 2 for a C# windows appliation.
forest = Forest.GetCurrentForest();
///This gets me all the domains of a forest.  How can I get just the 1 level
of sibling domains?  I know how to drill down to the children domain but not
sure how to get the sibling domains.  
Thank you.
Signature

Thanks.

Joe Kaplan - 02 Oct 2007 16:58 GMT
You need to get the RootDomain property from the Forest object and then
drill down through the Children property on the Domain object to get the
tree.

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

> Hi, I'm using vs2005, .net 2 for a C# windows appliation.
> forest = Forest.GetCurrentForest();
[quoted text clipped - 4 lines]
> sure how to get the sibling domains.
> Thank you.
Pucca - 02 Oct 2007 21:47 GMT
Thanks Joe.  That's exactly what I needed, thank you.  
Signature

Thanks.

> You need to get the RootDomain property from the Forest object and then
> drill down through the Children property on the Domain object to get the
[quoted text clipped - 10 lines]
> > sure how to get the sibling domains.
> > Thank you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.