Guest User

Untitled

a guest
May 18th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using (SPSite site = new SPSite("siteurl"))
  2. {
  3. SPServiceContext context = SPServiceContext.GetContext(site);
  4. UserProfileManager profileManager = new UserProfileManager(context);
  5. userprofile = profileManager.GetUserProfile(domainAccount);
  6. if (this.userprofile["SPS-JobTitle"] != null)
  7. {
  8. jobtitle = Convert.ToString(this.userprofile["SPS-JobTitle"].Value);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment