Which code segment should you use at line 6?

You create an application that contains the following code segment:

01: Private Sub ModifyCellPhonePrivacy(Byval currentProfile As String)
02: Dim userProfile As New UserProfile.UserProfileServices()
03: Dim cellData as userProfile.PropertyData() = New
userProfile.PropertyData(0)~~
04: cellData(0) = New userProfile.PropertyData()
05: cellData(0).Name = “Cell Phone”
06:
07: userProfile.ModifyUserPropertyByAccountName(currentProfile, cellData)
08: End Sub

You need to set the privacy of the cell phone value to only me for all user profiles. Which code segment should you use at line 6?

You create an application that contains the following code segment:

01: Private Sub ModifyCellPhonePrivacy(Byval currentProfile As String)
02: Dim userProfile As New UserProfile.UserProfileServices()
03: Dim cellData as userProfile.PropertyData() = New
userProfile.PropertyData(0)~~
04: cellData(0) = New userProfile.PropertyData()
05: cellData(0).Name = “Cell Phone”
06:
07: userProfile.ModifyUserPropertyByAccountName(currentProfile, cellData)
08: End Sub

You need to set the privacy of the cell phone value to only me for all user profiles. Which code segment should you use at line 6?

A.
cellData(0).Privacy = userProfile.Privacy.Contacts
cellData(0).IsValueChanged = False

B.
cellData(0).Privacy = userProfile.Privacy.Contacts
cellData(0). IsValueChanged = True

C.
cellData(0).Privacy = userProfile.Privacy.[Private]
cellData(0). IsValueChanged = True

D.
cellData(0).Privacy = userProfile.Privacy.[Private]
cellData(0). IsValueChanged = False



Leave a Reply 0

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