Which code segment should you insert at line 12?

You develop a SharePoint-hosted app. The app includes the following code segment: (Line numbers are included for reference only.)


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);

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.