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

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

IServerEnvironmentXHelper.AddServerDirectory Method

Adds a new server directory into the server environment.

[Visual Basic .NET]
Public Sub AddServerDirectory ( _
    ByVal dirPath As String, _
    ByVal URL As String, _
    ByVal Description As String, _
    ByVal CleaningMode As esriServerDirectoryCleaningMode, _
    ByVal MaxFileAge As Integer, _
    ByVal Type As esriServerDirectoryType _
public void AddServerDirectory (
    string dirPath,
    string URL,
    string Description,
    esriServerDirectoryCleaningMode CleaningMode,
    int MaxFileAge,
    esriServerDirectoryType Type
HRESULT AddServerDirectory(
  BSTR dirPath,
  BSTR Description,
  esriServerDirectoryCleaningMode CleaningMode,
  long MaxFileAge,
  esriServerDirectoryType Type
dirPath [in]

dirPath is a parameter of type BSTR URL [in]
URL is a parameter of type BSTR Description [in]
Description is a parameter of type BSTR CleaningMode [in]
CleaningMode is a parameter of type esriServerDirectoryCleaningMode MaxFileAge [in]
MaxFileAge is a parameter of type long Type [in]
Type is a parameter of type esriServerDirectoryType

Product Availability

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

See Also

IServerEnvironmentXHelper Interface