c# - Access to property in UserPrincipal -


i have directoryservices.accountmanagement.userprincipal object. see using visual studio properties in access them.

enter image description here

how can access to, example, property emailaddress? posible?

member.something.emailaddress 

?

update

emailaddress not accesible directly:

enter image description here

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -