Solved

How do I know that a DriectoryEntry has no children?

Posted on 2006-07-17
1
320 Views
Last Modified: 2008-02-01
I'm building a treeview and a list view.  I need to know when I reached the end of the tree nodes, which means that node or directory entry has no children.  Is there a property or method in DirectoryEntry class that does this?  If not, how can I verify this?
--
Thanks.
0
Comment
Question by:lapucca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
whatsit2002 earned 500 total points
ID: 17126707
lapucca,

Is this what you're looking for?

System.DirectoryServices.DirectoryEntry de = new System.DirectoryServices.DirectoryEntry();
if (de.Children.SchemaFilter.Count == 0)
  MessageBox.Show("It's empyt.");

Thanks.

Jason
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question