c# - Access to property in UserPrincipal -
i have directoryservices.accountmanagement.userprincipal object. see using visual studio properties in access them.
how can access to, example, property emailaddress? posible?
member.something.emailaddress
?
update
emailaddress not accesible directly:
just use member.emailaddress
....
see this msdn page complete list of properties on userprincipal
can access directly - , emailaddress
1 of them!
update: you're saying cannot access .emailaddress
directly... really dealing userprincipal
object?
try this:
userprincipal = (member userprincipal); if (up != null) { string email = up.emailaddress; }
can access .emailaddress
property on up
object??
Comments
Post a Comment