Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
Public Overridable Sub Update ( _
ensure As Boolean _
)
'Usage
Dim instance As SPPersistedObject
Dim ensure As Boolean
instance.Update(ensure)
public virtual void Update(
bool ensure
)
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
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.
Please sign in to use this experience.
Sign in