ActivityManager.PrepareToAllowSchemaChanges method

Implements copy-on-write behavior for collections inside this ActivityManager object, so that collections within the cached ActivityManager (stored in the User Profile Application) are not modified while any updates are being made.

Namespace:  Microsoft.Office.Server.ActivityFeed
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public bool PrepareToAllowSchemaChanges()

Return value

Type: System.Boolean

The cached ActivityManager is updated by using the User Profile Application cache consistency protocol. This method must be invoked before any code that changes the ActivityApplications, ActivityTypes, or ActivityTemplates properties of this ActivityManager.

Returns true if the caller can now proceed to make changes to the schema. Throws an exception if the caller tries to change the schema even if this function returns false.