471,318 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

.Properties or .Invoke in VB.NET?

I'm creating a new user account in AD an have come across what seems to be
two methods to set the user account properties.

The simpler way:
NewUser.Properties("sAMAccountName").Add("sam.acco unt")

The other way:
NewUser.Invoke("Put", New Object() {"sAMAccountName", "sam.account"})

Is one way better than the other?
Jul 21 '05 #1
0 1035

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by wang.qiang | last post: by
11 posts views Thread by JPRoot | last post: by
3 posts views Thread by CodeToad | last post: by
reply views Thread by Michael | last post: by
1 post views Thread by =?Utf-8?B?VGVlcmF2ZWU=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.