SPDatabaseSnapshot.Age Property

Gets the age of the database snapshot, in hours.

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

public int Age { get; }

Property Value

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

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.