SPDatabaseSnapshot.Age Property

Gets the age of the database snapshot, in hours.

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

Syntax

'Declaration
Public ReadOnly Property Age As Integer
    Get
'Usage
Dim instance As SPDatabaseSnapshot
Dim value As Integer

value = instance.Age
public int Age { get; }

Property Value

Type: System.Int32
The number of hours since the creation of the database snapshot.

Remarks

If management of the parent SPDatabaseSnapshotCollection is enabled (EnabledManagement is true), the maximum lifespan of all database snapshots of the database can be set with MaximumRetention.

See Also

Reference

SPDatabaseSnapshot Class

SPDatabaseSnapshot Members

Microsoft.SharePoint.Administration.Backup Namespace