Click here to Skip to main content
15,896,207 members
Articles / Programming Languages / Visual Basic

Active Directory Object Navigator

Rate me:
Please Sign up or sign in to vote.
4.67/5 (21 votes)
25 Apr 20054 min read 264.6K   6.4K   108  
An article describing how to connect to an Active Directory database.
<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>AdManager.GetRootNode Method (String, String, String)</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner">Active Diretory Object Navigator</div><div id="nstext"><p> This method gets a root node on the Active Directory using the parameterized username, parameterized password and parameterized domain. </p><div class="syntax"><span class="lang">[Visual Basic]</span><br>Overloads Public Shared Function GetRootNode( _<br>   ByVal <i>Domain</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _<br>   ByVal <i>DomainUserName</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _<br>   ByVal <i>DomainPassword</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> _<br>) As <a href="BVA.ActiveDirectory.Navigator.Objects.RootNode.html">RootNode</a></div><div class="syntax"><span class="lang">[C#]</span><br>public static <a href="BVA.ActiveDirectory.Navigator.Objects.RootNode.html">RootNode</a> GetRootNode(<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>Domain</i>,<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>DomainUserName</i>,<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>DomainPassword</i><br>);</div><h4 class="dtH4">Parameters</h4><dl><dt><i>Domain</i></dt><dd>Domain to be used.</dd><dt><i>DomainUserName</i></dt><dd>Domain username to be used.</dd><dt><i>DomainPassword</i></dt><dd>Domain user password to be used.</dd></dl><h4 class="dtH4">Return Value</h4><p>This method returns an Active Directory RootNode.</p><h4 class="dtH4">See Also</h4><p><a href="BVA.ActiveDirectory.Navigator.Business.AdManager.html">AdManager Class</a> | <a href="BVA.ActiveDirectory.Navigator.Business.html">BVA.ActiveDirectory.Navigator.Business Namespace</a> | <a href="BVA.ActiveDirectory.Navigator.Business.AdManager.GetRootNode_overloads.html">AdManager.GetRootNode Overload List</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="GetRootNode method"><param name="Keyword" value="GetRootNode method, AdManager class"><param name="Keyword" value="AdManager.GetRootNode method"></object><hr><div id="footer"><p><a href="mailto:bernardo@bancobva.com.br?subject=Active Directory Object Navigator Documentation Feedback: AdManager.GetRootNode%C2%A0Method%C2%A0(String, String, String)">Send comments on this topic.</a></p>- Bernardo Heynemann (bernardo@bancobva.com.br) -</div></div></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
Bernardo Heynemann is a senior developer at ThoughtWorks UK in London. He is really into Visual Studio 2008, LINQ and ASP.Net MVC. He's also chairman of Stormwind Project (http://www.stormwindproject.org). He can be found at his blog at http://blogs.manicprogrammer.com/heynemann.

Comments and Discussions