Share via


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)

Syntax

'Declaration
Public Function PrepareToAllowSchemaChanges As Boolean
'Usage
Dim instance As ActivityManager
Dim returnValue As Boolean

returnValue = instance.PrepareToAllowSchemaChanges()
public bool PrepareToAllowSchemaChanges()

Return Value

Type: System.Boolean

Remarks

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.

See Also

Reference

ActivityManager Class

ActivityManager Members

Microsoft.Office.Server.ActivityFeed Namespace