[Visual Basic 6.0]The following code shows how to connect to the ArcGIS Server named "melange" and print the name and type of all its server object configurations.
Dim pGISServerConnection As IGISServerConnection Set pGISServerConnection = New GISServerConnection pGISServerConnection.Connect "melange" Dim pServerObjectAdmin As IServerObjectAdmin Set pServerObjectAdmin = pGISServerConnection.ServerObjectAdmin Dim pEnumSOC As IEnumServerObjectConfiguration Set pEnumSOC = pServerObjectAdmin.GetConfigurations Dim pSOC As IServerObjectConfiguration Set pSOC = pEnumSOC.Next Do Until pSOC Is Nothing Debug.Print pSOC.Name & ": " & pSOC.TypeName Set pSOC = pEnumSOC.Next Loop
[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
in the upper-left corner of the page.