Partager via


IFsrmFileManagementJob.ExpirationDirectory Property

 

Retrieves or sets the root directory that will contain the expired files.

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

Syntax

string ExpirationDirectory { get; set; }
property String^ ExpirationDirectory {
    String^ get();
    void set(String^ value);
}
abstract ExpirationDirectory : string with get, set
Property ExpirationDirectory As String

Property Value

Type: System.String

Returns a String containing the local directory path to which files that match all the file management job's conditions will be moved to when the file management job is run. The total path string length cannot exceed 148 characters and must refer to a directory on an NTFS volume where the current process has write permission.

Remarks

FSRM moves the files that meet all of the file management job's conditions to this directory when the job is run, therefore the running process must have write permission. The directory must also be located on an NTFS volume.

FSRM maintains the file's current directory structure in the expired directory so you can determine its previous location. For example, if FSRM expired the file, "C:\TestExpired\Test1.txt", the expired root directory would contain:

"FsrmServer(FQDN)\JobName_TimeStamp\C$\TestExpired\Test1.txt"

The expired file's ACLs are maintained with the file.

If the expiration directory does not exist, FSRM creates the directory (with administrator access rights only).

Do not specify an expiration directory that is in the NamespaceRoots path.

Specify only if OperationType is FsrmFileManagementType_Expiration.

See Also

IFsrmFileManagementJob Interface
Microsoft.Storage Namespace

Return to top