Click here to Skip to main content
15,886,872 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 264K   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>GroupCollection Members</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><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.html">GroupCollection overview</a></p><h4 class="dtH4">Public Instance Constructors</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0"><tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollectionConstructor.html">GroupCollection Constructor</a></td><td width="50%">Initializes a new instance of the GroupCollection class.</td></tr></table></div><h4 class="dtH4">Public Instance Properties</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassCountTopic.htm">Count</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Gets the number of elements contained in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.IsFixed.html">IsFixed</a></td><td width="50%"> This property indicates if the collection is fixed. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.IsReadOnly.html">IsReadOnly</a></td><td width="50%"> This property indicates if the collection is readonly. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollectionItem.html">Item</a></td><td width="50%">Overloaded.  Enumerator for this collection. </td></tr></table></div><h4 class="dtH4">Public Instance Methods</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.Add.html">Add</a></td><td width="50%"> This method appends an item to the collection. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.AddRange_overloads.html">AddRange</a></td><td width="50%">Overloaded.  Adds one collection to this collection. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassClearTopic.htm">Clear</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Removes all objects from the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.Contains.html">Contains</a></td><td width="50%"> This method tells if the collection contains the item. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.CopyTo.html">CopyTo</a></td><td width="50%"> Copies an array to another. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassEqualsTopic.htm">Equals</a> (inherited from <b>Object</b>)</td><td width="50%">Determines whether the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is equal to the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassGetEnumeratorTopic.htm">GetEnumerator</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Returns an enumerator that can iterate through the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetHashCodeTopic.htm">GetHashCode</a> (inherited from <b>Object</b>)</td><td width="50%">Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.IndexOf.html">IndexOf</a></td><td width="50%"> Returns the index (position) of an item in the collection. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.Insert.html">Insert</a></td><td width="50%"> Inserts an item in the collection. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.Remove.html">Remove</a></td><td width="50%"> Removes an item from the collection. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassRemoveAtTopic.htm">RemoveAt</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Removes the element at the specified index of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr></table></div><h4 class="dtH4">Protected Instance Properties</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protproperty.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassInnerListTopic.htm">InnerList</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Gets an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsArrayListClassTopic.htm">ArrayList</a> containing the list of elements in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protproperty.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassListTopic.htm">List</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Gets an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsIListClassTopic.htm">IList</a> containing the list of elements in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr></table></div><h4 class="dtH4">Protected Instance Methods</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassFinalizeTopic.htm">Finalize</a> (inherited from <b>Object</b>)</td><td width="50%">Allows an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> to attempt to free resources and perform other cleanup operations before the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is reclaimed by garbage collection.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassMemberwiseCloneTopic.htm">MemberwiseClone</a> (inherited from <b>Object</b>)</td><td width="50%">Creates a shallow copy of the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnClearTopic.htm">OnClear</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes when clearing the contents of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnClearCompleteTopic.htm">OnClearComplete</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes after clearing the contents of the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnInsertTopic.htm">OnInsert</a> (inherited from <b>CollectionBase</b>)</td><td width="50%"> Performs additional custom processes before inserting a new element into the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnInsertCompleteTopic.htm">OnInsertComplete</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes after inserting a new element into the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnRemoveTopic.htm">OnRemove</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes when removing an element from the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnRemoveCompleteTopic.htm">OnRemoveComplete</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes after removing an element from the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnSetTopic.htm">OnSet</a> (inherited from <b>CollectionBase</b>)</td><td width="50%"> Performs additional custom processes before setting a value in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnSetCompleteTopic.htm">OnSetComplete</a> (inherited from <b>CollectionBase</b>)</td><td width="50%"> Performs additional custom processes after setting a value in the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassTopic.htm">CollectionBase</a> instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsCollectionBaseClassOnValidateTopic.htm">OnValidate</a> (inherited from <b>CollectionBase</b>)</td><td width="50%">Performs additional custom processes when validating a value.</td></tr></table></div><h4 class="dtH4">See Also</h4><p><a href="BVA.ActiveDirectory.Navigator.Objects.GroupCollection.html">GroupCollection Class</a> | <a href="BVA.ActiveDirectory.Navigator.Objects.html">BVA.ActiveDirectory.Navigator.Objects Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="GroupCollection class"><param name="Keyword" value="BVA.ActiveDirectory.Navigator.Objects.GroupCollection class"><param name="Keyword" value="GroupCollection class, all members"></object><hr><div id="footer"><p><a href="mailto:bernardo@bancobva.com.br?subject=Active Directory Object Navigator Documentation Feedback: GroupCollection Members&#xD;&#xA;						">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