SPDatabaseSnapshot members

Represents a database snapshot of a Microsoft SQL Server database.

The SPDatabaseSnapshot type exposes the following members.

Properties

  Name Description
Public property Age Gets the age of the database snapshot, in hours.
Public property ConnectionString Gets the connection string to the database snapshot of the database.
Public property Created Gets the time that the database snapshot was created.
Public property Name Gets the name of the Microsoft SQL Server database snapshot.

Top

Methods

  Name Description
Public method Delete() Deletes the database snapshot permanently from the Microsoft SQL Server database.
Public method Delete(Boolean) Drops the database snapshot from the Microsoft SQL Server database.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Restore() Overwrites the database with the database snapshot, as long as the class representing the database implements IDatabaseSnapshotRestore, and then deletes all database snapshots.
Public method Restore(Boolean) Overwrites the database with the database snapshot and then deletes all database snapshots, optionally ignoring whether the database class implements IDatabaseSnapshotRestore.
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPDatabaseSnapshot class

Microsoft.SharePoint.Administration.Backup namespace