How to call IADS::PutEx method from VB.Net

  • Thread starter Thread starter Scott Lemen
  • Start date Start date
S

Scott Lemen

Hi,

I'm trying to write to an Active Directory multivalued attribute from
VB.Net. I have working code for the Put method but haven't found the
correct code for PutEx.

This code
myDirectoryEntry.Invoke("PutEx", New Object() {ADS_PROPERTY_UPDATE,
"showInAddressBook", AddressBookArray})

throws the exception:

'System.Reflection.TargetInvocationException' occurred in mscorlib.dll

Thank you for your help,

Scott
 
Back
Top