This document is archived and information here might be outdated.  Recommended version.


esriServerDirectoryCleaningMode Constants (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Server)  

esriServerDirectoryCleaningMode Constants

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IServerDirectory Interface | IServerDirectoryInfo Interface