다음을 통해 공유


SPDatabaseSnapshotCollection.Item Property

Include Protected Members
Include Inherited Members

Gets the database snapshot at the specified indexed location in the collection of database snapshots.

Overload List

  Name Description
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.

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

SPDatabaseSnapshotCollection Members

Microsoft.SharePoint.Administration.Backup Namespace