Which method should you call?

You create a web part that contains the following code segment:

01: Dim profileManager as new UserProfileManager(Current.Context)
02: Dim profile as UserProfile =
profileManager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName)
03: Dim colManager as new ColleagueManager(profile)

You need to ensure that the web part displays a list of colleagues for the current user.

Which method should you call?

You create a web part that contains the following code segment:

01: Dim profileManager as new UserProfileManager(Current.Context)
02: Dim profile as UserProfile =
profileManager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName)
03: Dim colManager as new ColleagueManager(profile)

You need to ensure that the web part displays a list of colleagues for the current user.

Which method should you call?

A.
colManager.GetColleaguesOfColleague()

B.
colManager.GetCommonColleagues()

C.
colManager.GetGroupList()

D.
colManager.GetItems()



Leave a Reply 0

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