| Article: |
Introduction to System.DirectoryServices, Part 2 | |
| Subject: | Code may not work as described | |
| Date: | 2004-09-30 00:15:05 | |
| From: | Wrayx1 | |
|
Robbie describes using the NativeObject, however the code objChild.NativeObject.AccountDisabled = False will not compile because it isn't a property of NativeObject. Instead try this (in C# - but similar in VB.NET) ActiveDs.IADsUser objIADsUser = (ActiveDs.IADsUser) objChild.NativeObject; objIADsUser.AccountDisabled = true;
|
||
Women in Technology
Hear us Roar
