0
Answer

Using "DirectorySearcher" class how to query for required machine name?

Ask a question
Pragnya Kulkarni

Pragnya Kulkarni

14y
3.3k
1

hi,

I have a wpf application, where it loads all domain names in a tree view & in the right hand side I have text box where user is given an search option to find machine name.

So i wanted to know if we can directly query for machine name using DirectorySearcher class without taking an insatance of DirectoryEntry which takes time to list out all machine names!!

Please give me a solution..I am new to .net