Represents a collection of SPDatabaseSnapshot objects that are Microsoft SQL Server database snapshots. This class also provides methods and properties for the management of the database snapshots.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
If EnabledManagement is true, then database snapshots can be created and deleted automatically by timer jobs in the background. To help ensure that the object represents the current set of database snapshots, always call the RefreshSnapshots() method before you access or process any members of the collection. This point applies also when you access a database snapshot through an indexer. For example, if spd is an SPDatabase object, the line spd.Snapshots should be preceded by a call of the RefreshSnapshots() method.
Database snapshots can only be created by specific versions of Microsoft SQL Server. Use the IsSnapshotSupported property to determine if the Microsoft SQL Server hosting your database supports database snapshots.