Partager via


IFsrmFileManagementJob.FromDate Property

 

Retrieves or sets 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.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

DateTime FromDate { get; set; }
property DateTime FromDate {
    DateTime get();
    void set(DateTime value);
}
abstract FromDate : DateTime with get, set
Property FromDate As Date

Property Value

Type: System.DateTime

Returns a DateTime containing The date from which to begin expiring files.

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.

See Also

IFsrmFileManagementJob Interface
Microsoft.Storage Namespace

Return to top