SPDatabaseSnapshotCollection.CreationInterval Property
The time, in hours, between automatic database snapshot creations.
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property CreationInterval As Short
Get
Set
'Usage
Dim instance As SPDatabaseSnapshotCollection
Dim value As Short
value = instance.CreationInterval
instance.CreationInterval = value
public short CreationInterval { get; set; }
Property Value
Type: System.Int16
The number of hours between database snapshots.
Remarks
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.
Examples
In the following example, db is an SPDatabase object.
db.Snapshots.RefreshSnapshots();db.Snapshots.CreationInterval = 3; db.Update();
See Also
Reference
SPDatabaseSnapshotCollection Class