ArcObjects Library Reference  (Server)    

IServerObjectAdmin GetServerDirectory Example

[Visual Basic 6.0]

The following VB code shows how to connect to the ArcGIS Server called "melange", and use the GetServerDirectory method to get a ServerDirectory, change its MaxFileAge property, then update the directory using the UpdateServerDirectory method:

  Dim pGISServerConnection As IGISServerConnection
  Set pGISServerConnection = New GISServerConnection
  pGISServerConnection.Connect "melange"
 
  Dim pServerObjectAdmin As IGISServerObjectAdmin
  Set pServerObjectAdmin = pServerConnection.ServerObjectAdmin
 
  Dim pSDir As IServerDirectory
  Set pSDir = pServerObjectAdmin.GetServerDirectory("\\melange\serveroutput")
  pSDir.MaxFileAge = 200
  pServerObjectAdmin.UpdateServerDirectory pSDir

 


[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button Language Filter in the upper-left corner of the page.