CreationInterval Property
Collapse the table of content
Expand the table of content

SPDatabaseSnapshotCollection.CreationInterval Property

The time, in hours, between automatic database snapshot creations.

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public short CreationInterval { get; set; }

Property Value

Type: System.Int16
The number of hours between database snapshots.

The CreationInterval property is ignored by the built-in database snapshot management system of SharePoint Foundation if EnabledManagement is false.

You must call Update() to save changes to this property.

In the following example, db is an SPDatabase object.

db.Snapshots.RefreshSnapshots();db.Snapshots.CreationInterval = 3; db.Update();
Show:
© 2016 Microsoft