nerdexam
Microsoft

70-573 · Question #196

70-573 Question #196: Real Exam Question with Answer & Explanation

The correct answer is C. Dim profileManager As New UserProfileManager(SPServiceContext.Current). See the full explanation below for the reasoning.

Question

You have a custom user profile property named MyProperty. You need to create a Web Part that displays the value of MyProperty for the current user. Which code segment should you use?

Options

  • ADim profile As String =
  • BDim profile As String = SPContext.Current.Web.Users("MyProperty").
  • CDim profileManager As New UserProfileManager(SPServiceContext.Current)
  • DDim profileManager As New UserProfileManager(SPServiceContext.Current)

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice