SPDatabaseSnapshotCollection.Item property
Gets the database snapshot at the specified indexed location in the collection of database snapshots.
Overload list
Name | Description | |
---|---|---|
Item[Int32] | Gets the database snapshot at the specified indexed location in the collection of database snapshots. | |
Item[String] | Gets the first database snapshot in the collection of database snapshots with the specified name. |
Top
Remarks
Warning
Database snapshots are typically created and deleted automatically by timer jobs in the background. To help ensure that the SPDatabaseSnapshotCollection 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[0] should be preceded by a call of the RefreshSnapshots() method.
See also
Reference
SPDatabaseSnapshotCollection class