SPInformationRightsManagementSettings.DocumentAccessExpireDays property

SharePoint 2013

Gets or sets the number of days after which the downloaded document will expire.

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

public int DocumentAccessExpireDays { get; set; }

Property value

Type: System.Int32
The number of document access expire days between 1 and 365 if Information Rights Management (IRM) and document access expire are both enabled, otherwise the default value is returned.