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

IServerObjectAdmin.GetServerDirectories Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectAdmin Interface > IServerObjectAdmin.GetServerDirectories Method
ArcGIS Developer Help

IServerObjectAdmin.GetServerDirectories Method

An enumerator over the GIS server's output directories.

[Visual Basic .NET]
Public Function GetServerDirectories ( _
) As IEnumServerDirectory
public IEnumServerDirectory GetServerDirectories (
HRESULT GetServerDirectories(

Product Availability

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


Both server objects and server applicaitons typically need to write either temporary data or result data to some location in order for it to be delivered to, or presented to the end user. For example, a map server object's ExportMapImage method can create a image file which is then displayed on a web applicaiton. These files are typically transient and temporary by nature. For example, when a map server writes an image to satisfy a request from a web application, that image is needed only for the time it takes to display it on the web application. An application that creates check out personal geodatabases for download would provide a finite amount of time between which that geodatabase is created and when it can be downloaded.

Because server applications support many user sessions, these output files can accumulate and need to be periodically cleaned up. The server provides the cabability to automatically cleanup these output files if they are written to one of the server's output directories.

The GetServerDirectories method returns a enumeration of all the server directories that are managed by the server.

See Also

IServerObjectAdmin Interface