Talk About Network

Google





Software > ADSI General > Adding values t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5274 of 5437
Post > Topic >>

Adding values to user object attribute

by =?Utf-8?B?SWFpbk0=?= <IainM@[EMAIL PROTECTED] > May 13, 2008 at 08:27 AM

I am using the code below to add a value to users' "employeeType"
attribute, 
but the "UserObject.SetInfo()" line always produces the error "A first
chance 
exception of type 'System.Runtime.InteropServices.COMException' occurred
in 
app.exe".

Can anyone tell me where I've went wrong?

Thanks,
Iain
 
        Dim UserObject As ActiveDs.IADs
        Dim strBuffer As String

        Try
            UserObject = GetObject(strDN)
            strBuffer = ""
            UserObject.Put(strBand, "employeeType")
            UserObject.SetInfo()
        Catch
            Msgbox "Error!"
        Finally
            UserObject = Nothing

        End Try
 




 4 Posts in Topic:
Adding values to user object attribute
=?Utf-8?B?SWFpbk0=?= <  2008-05-13 08:27:00 
Re: Adding values to user object attribute
"Joe Kaplan" &l  2008-05-13 11:00:41 
Re: Adding values to user object attribute
=?Utf-8?B?SWFpbk0=?= <  2008-05-14 01:22:04 
Re: Adding values to user object attribute
Gerry Hickman <gerry66  2008-05-16 23:55:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 20:43:32 PST 2009.