What should you use?
You need to programmatically target a web part to an audience.
What should you use?
Which code segment should you add?
You create a console application that contains the following two arguments:
loginName as LoginName
givenName as UsersGivenName
You write the following code segment:
01: Dim userProf as New UserProfile.UserProfileServices()
02: userProf.CreateUserProfileByAccountName(loginName)
03: Dim firstName as UserProfile.PropertyData() = New UserProfile.PropertyData(0) {}
04: firstName(0) = New UserProfile.PropertyData()
05: firstName(0).Name = “FirstName”
06: firstName(0).Values = New UserProfile.ValueData(0) {}
07: firstName(0).Values(0) = New UserProfile.ValueData()
08: firstName(0).Values(0).Value = givenName
You need to create a profile and assign the user’s given name to the profile.
Which code segment should you add?
A. firstName(0).IsValueChanged = False
userProf.ModifyUserPropertyByAccountName(loginName, firstName) B. firstName(0).IsValueChanged = True
userProf.ModifyUserPropertyByAccountName(loginName, firstName) C. firstName(0).IsValueChanged = False
userProf.ModifyUserPropertyByAccountName(givenName, firstName) D. firstName(0).IsValueChanged = True
userProf.ModifyUserPropertyByAccountName(givenName, firstName)
Which code segment would you use?
You create a Microsoft Office InfoPath form library. You need to provide users with the ability to convert new forms to web pages on demand. You must use an existing document converter.
Which code segment would you use?
What should you do?
Your company uses a portal site to recreate site hierarchies. You need to add additional sites to the hierarchy that is defined in the portal site template.
What should you do?
Which stsadm.exe operation should you use in the batch file?
You plan to create a batch file that defines several trusted workbook locations. You need to ensure that connections that are defined in trusted data connection libraries are allowed to be used.
Which stsadm.exe operation should you use in the batch file?
Which interface should you implement?
You need to implement a custom feature that audits content in a SharePoint site.
Which interface should you implement?