Windows Dev Center

IFsrmFileManagementJob::DaysSinceFileLastAccessed property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

The number of days that have elapsed since the file was last accessed.

This property is read/write.

Syntax


HRESULT put_DaysSinceFileLastAccessed(
  [in]  long daysSinceAccess
);

HRESULT get_DaysSinceFileLastAccessed(
  [out] long *pDaysSinceAccess
);

Property value

The number of days that have elapsed since the file was last accessed. Must be a non-negative integer value.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success

E_INVALIDARG

The daysSinceAccess parameter is less than zero.

Remarks

The value is FsrmDaysNotSpecified if not set.

The job considers this condition met for a file if the file's last accessed date minus the job's current run date is less than the value of daysSinceAccess.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

DLL

SrmSvc.dll

IID

IID_IFsrmFileManagementJob is defined as 0770687e-9f36-4d6f-8778-599d188461c9

See also

IFsrmFileManagementJob
MSFT_FSRMFileManagementJob

 

 

Show:
© 2015 Microsoft