ArcObjects Library Reference  (Server)    

IServerObjectAdmin DeleteConfiguration Example

[Visual Basic 6.0]

The following code shows how to stop, then delete a server object configuration called RedlandsMap:

  Dim pGISServerConnection As IGISServerConnection
  Set pGISServerConnection = New GISServerConnection
  pGISServerConnection.Connect "melange"
  
  Dim pServerObjectAdmin As IServerObjectAdmin
  Set pServerObjectAdmin = pGISServerConnection.ServerObjectAdmin
  
  pServerObjectAdmin.StopConfiguration "RedlandsMap", "MapServer"
  pServerObjectAdmin.DeleteConfiguration "RedlandsMap", "MapServer"

[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.