This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Constants > E > esriServerDirectoryCleaningMode Constants (ArcObjects .NET 10.4 SDK) |
The server directory cleaning mode.
Constant | Value | Description |
---|---|---|
esriSDCNone | 0 | Files in the directory are not deleted by the GIS server. |
esriSDCSliding | 1 | Files in the directory are cleaned by the GIS server based on the amount of time elapsed since they were last modified. |
esriSDCAbsolute | 2 | Files in the directory are cleaned by the GIS server based on the amount of time elapsed since they were created. |
esriServerDirectoryCleaningMode indicates whether a GIS server's server directory's files are automatically deleted or not. If the files are deleted, esriServerDirectoryCleaningMode specifies the criteria on which they are deleted. Files in a directory whose cleaning mode is esriSDCSliding will be deleted based on their last accessed time. Files in a directory whose cleaning mode is esriSDCAbsolute will be deleted based on their creation time. You get and set the esriServerDirectoryCleaningMode via the CleaningMode property on IServerDirectory, and you can get the esriServerDirectoryCleaningMode via the CleaningMode property on IServerDirectoryInfo.