Directory Services |
This topic contains links to all of the C# code examples contained in the System.DirectoryServices Using guide.
Link | Description |
---|---|
Adding a group to another group | Using the Add method. |
Adding directory objects | Using the Add method to add child objects. |
Adding users to a group | Using the Add method. |
Binding strings | Using DirectoryEntry to bind to objects. |
Binding using GUID | Using the NativeGuid property. |
Boolean property type | Reading and setting a Boolean property using the Value property. |
Change password | Changing user passwords. |
Constructed property | Reading and writing constructed properties. |
Creating a DirectoryEntry | Creating a DirectoryEntry in memory that binds to an entry in the directory, and writing the path, name, and GUID for that directory entry. |
Creating groups | Creating a new group, domain local group, and non-secure group. |
Creating users | Using the Add method. |
Date/time property type | Writing the date/time property. |
Deleting groups | Using the Remove method. |
DN with binary property type | Reading and writing using ActiveDS. |
Enumerating child objects | Using a simple foreach statement. |
Enumerating users in a group | Using Properties. |
Enumerating user memberships | Using a Windows form. |
Enumerating members in a large group | Using range retrieval. |
Invoking ADSI methods | Using Invoke. |
Invoking ADSI properties | Using InvokeMember. |
Large integer property type | Reading and writing large integers. |
Moving objects | Using the MoveTo method. |
Navigating to the child object | Using the Children property to bind to child objects. |
Navigating to the parent object | Using theParent property to bind to parent objects. |
Octet string property type | Reading and writing octet strings. |
Properties: Reading properties on directory objects | Using the Properties collection to read object properties. |
Properties: Reading properties with multiple values | Using the Values property and arrays to read property values. |
Properties: Setting properties on directory objects | Using the Setting properties with the Add method and Value property. |
Properties: Setting properties with multiple values | Using the AddRange and Insert methods and using arrays. |
Property cache | Using the RefreshCache method. |
Removing users from a group | Using the Add method. |
Renaming objects | Using the Rename property. |
Searching: Groups | Using DirectorySearcher. |
Searching: Referral chasing | Using the ReferralChasing property. |
Searching: Retrieving search results | Using SearchResult and SearchResultCollection to retrieve search results. |
Searching: Searching the directory | Using DirectorySearcher with the FindAll method to search the directory. |
Searching: Setting search filters | Using the Filter property to set a search filter. |
Searching: Setting search scope | Using the SearchScope property. |
Security descriptors | Reading and writing a security descriptor using ActiveDS. |
Set password | Setting user passwords. |
Strings | Reading strings. |
User accounts | Enabling and disabling the user account. |
User accounts: Managing user passwords | Using Active DS. |
User accounts: Setting account expiration | Using InvokeMember. |
User accounts: Setting user account flags | Setting flags. |
User accounts: Setting properties | Setting properties viewed in the user interface. |
Verifying directory objects | Using the Exists method to verify that a directory object exists in the directory. |