The app must display user profile data for the user that is logged in. The user profile data must include the PreferredName, Department, and WorkPhone properties. You need to ensure that the app displays the required user profile data. Which code segment should you insert at line 12?
A. var a = new SP.UserProfiles.UserProfile();
B. var a = new SP.UserProfiles.SocialFollowingManager(context);
C. var a = SP.UserProfiles.Profileloader.GetProfileLoader(context);
D. var a = new SP.UserProfiles.PeopleManager(context);
Answer:D
The app must display user profile data for the user that is logged in. The user profile data must include the PreferredName, Department, and WorkPhone properties. You need to ensure that the app displays the required user profile data. Which code segment should you insert at line 12?
A. var a = new SP.UserProfiles.UserProfile(); B. var a = new SP.UserProfiles.SocialFollowingManager(context); C. var a = SP.UserProfiles.Profileloader.GetProfileLoader(context); D. var a = new SP.UserProfiles.PeopleManager(context);