Compartilhar via


SPDatabaseSnapshotCollection Members

Include Protected Members
Include Inherited Members

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.

The SPDatabaseSnapshotCollection type exposes the following members.

Constructors

  Name Description
Public method SPDatabaseSnapshotCollection Initializes a new instance of the SPDatabaseSnapshotCollection class.

Top

Properties

  Name Description
Public property Count Gets the total number of database snapshots of the database.
Public property CreationInterval The time, in hours, between automatic database snapshot creations.
Public property EnabledManagement Gets or sets a value that specifies whether the database snapshots for the database are managed by the built-in database snapshot management jobs of SharePoint Foundation.
Public property IsSnapshotSupported Gets a value that specifies whether database snapshots are supported by the current edition of Microsoft SQL Server being used for the database.
Public property Item[Int32] Gets the database snapshot at the specified indexed location in the collection of database snapshots.
Public property Item[String] Gets the first database snapshot in the collection of database snapshots with the specified name.
Public property MaximumRetention Gets or sets the time, in hours, that a database snapshot is saved before it is automatically deleted.
Public property Path Gets or sets the file system path on the database server where the database snapshots are stored.
Public property SnapshotLimit Gets or sets the maximum number of database snapshots that can be saved.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)

Top

Methods

  Name Description
Public method CreateSnapshot Creates a database snapshot of the current database.
Public method DeleteSnapshots Deletes all the database snapshots of the current database.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method RefreshSnapshots Queries the database to ensure that the SPDatabaseSnapshotCollection object represents the current list of all database snapshots of the database.
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that can be used to iterate through the collection.

Top

See Also

Reference

SPDatabaseSnapshotCollection Class

Microsoft.SharePoint.Administration.Backup Namespace