PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 06?

You plan to import SharePoint user profiles from a LDAP directory. You create a custom application that contains the following code segment:

01: Using site as new SPSite(“http://localhost”)
02: Dim context as ServerContext = ServerContext.GetContextc(site)
03: Dim userProfileManager as New UserProfileManager(context)
04: Dim userProfileConfigManager as New UserProfileConfigManager(context)
05: userProfileConfigManager.ActivateImport(True)
06:
07: End Using

You run the code segment. You notice the user profiles are not imported. You need to ensure that when the code segment runs, the SharePoint profiles are imported from the LDAP directory.

Which code segment should you add at line 06?

PrepAway - Latest Free Exam Questions & Answers

A.
userProfileManager.GetChanges()

B.
userProfileManager.GetUserProfile(True)

C.
userProfileConfigManager.ActivateImport(True)

D.
userProfileConfigManager.StartImport(True)

One Comment on “Which code segment should you add at line 06?


Leave a Reply