Which two actions should you perform?

You create a class that inherits the SPPersistedObject class. The class has a field named Field1.
You need to ensure that Field1 can be serialized and stored in the SharePoint configuration
database. Which two actions should you perform? (Each correct answer presents part of the
solution. Choose two)

You create a class that inherits the SPPersistedObject class. The class has a field named Field1.
You need to ensure that Field1 can be serialized and stored in the SharePoint configuration
database. Which two actions should you perform? (Each correct answer presents part of the
solution. Choose two)

A.
Mark Field1 with the [Persisted] attribute.

B.
Mark Field1 with the [Serializable] attribute.

C.
Add the default empty constructor.

D.
Set the value of the SPWeb.AllowUnsafeUpdate property.



Leave a Reply 0

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