Windows Dev Center

IFsrmFileManagementJob::FromDate 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 date from which you want the file management job to begin expiring files (moving files to the expired files directory). This property also applies to custom commands for the file management job.

This property is read/write.

Syntax


HRESULT put_FromDate(
  [in]  DATE fromDate
);

HRESULT get_FromDate(
  [out] DATE *pFromDate
);

Property value

The date from which to begin expiring files.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success

E_INVALIDARG

The date is in a format that is not valid.

Remarks

The value is FsrmDateNotSpecified if not set.

The job expires the files if the fromDate value is earlier than the job's current run date.

Typically, you set this date to be greater than the shortest notification period that you specify. This ensures that notification is sent at least once before files are expired. If you do not specify this date, files can be expired before notification is sent. For example, if you create job and run it the same day, it is possible that one or more files will meet the expiration conditions set by the job and be expired without any notification. You can create zero-day notification but the notification will be after the fact.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmReports.h

DLL

SrmSvc.dll

IID

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

See also

IFsrmFileManagementJob
MSFT_FSRMFileManagementJob

 

 

Show:
© 2015 Microsoft