Which code segment should you use?

You create a custom task list in a Microsoft Windows SharePoint Services site.

You need to prevent users from changing the custom task list. You also need to ensure that an error message is displayed when a user tries to change the list.

Which code segment should you use?

You create a custom task list in a Microsoft Windows SharePoint Services site.

You need to prevent users from changing the custom task list. You also need to ensure that an error message is displayed when a user tries to change the list.

Which code segment should you use?

A.
Public Overloads Overrides Sub ItemUpdating(ByVal properties _
As SPItemEventProperties)
properties.Cancel = True
properties.ErrorMessage = “Updating is not supported.”
End Sub

B.
Public Overloads Overrides Sub ItemUpdated(ByVal properties _
As SPItemEventProperties)
properties.Cancel = True
properties.ErrorMessage = “Updating is not supported.”
End Sub

C.
Public Overloads Overrides Sub ItemUncheckingOut(ByVal _
properties As SPItemEventProperties)
properties.Cancel = True
properties.ErrorMessage = “Updating is not supported.”
End Sub

D.
Public Overloads Overrides Sub ItemUncheckedOut(ByVal _
properties As SPItemEventProperties)
properties.Cancel = True
properties.ErrorMessage = “Updating is not supported.”
End Sub



Leave a Reply 0

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