Compartilhar via


SPDatabaseSnapshot Class

Represents a database snapshot of a Microsoft SQL Server database.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.Backup.SPDatabaseSnapshot

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPDatabaseSnapshot
'Usage
Dim instance As SPDatabaseSnapshot
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPDatabaseSnapshot

Remarks

Database snapshots can be accessed like any database, although they are in read-only mode. However, database snapshots are only available in Microsoft SQL Server Enterprise Edition and Microsoft SQL Server Developer Edition. You can confirm whether database snapshots are supported for a given database by checking the IsSnapshotSupported property of the collection object from the Snapshots property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPDatabaseSnapshot Members

Microsoft.SharePoint.Administration.Backup Namespace