This topic has not yet been rated - Rate this topic

SPPersistedObject.Update method (Boolean)

Causes the object to save its state and propagate changes to all the computers in the server farm, optionally throwing an exception if the object already exists in the configuration store.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public virtual void Update(
	bool ensure
)

Parameters

ensure
Type: System.Boolean
true to silently reinitialize the object with an existing object's data if the object already exists in the configuration store; false to throw an exception if the object already exists.
Important note Important

Do not call this method on the SPFarm object. If you have farm-wide settings that need to be persisted, derive a class from SPPersistedObject specifically to hold those settings.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.