com.esri.arcgis.server
Interface IServerInfos

All Superinterfaces:
Serializable
All Known Implementing Classes:
IServerInfosProxy

public interface IServerInfos
extends Serializable

Provides access to members that manage the collection of IServerInfo objects (SOMs in a GIS Server).

Product Availability

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


Method Summary
 void add(IServerInfo serverInfo)
          Adds an IServerInfo object to the end of the collection.
 int getCount()
          Gets the number of IServerInfo objects in the collection.
 IServerInfo getElement(int index)
          Returns the IServerInfo at the specified index.
 void insert(int index, IServerInfo serverInfo)
          Inserts an IServerInfo object into the collection at the specified index.
 void remove(int index)
          Removes the IServerInfo at the specified index.
 void removeAll()
          Removes all of the IServerInfo objects in the collection.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
Gets the number of IServerInfo objects in the collection.

Product Availability

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

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

IServerInfo getElement(int index)
                       throws IOException,
                              AutomationException
Returns the IServerInfo at the specified index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.server.IServerInfo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(int index)
            throws IOException,
                   AutomationException
Removes the IServerInfo at the specified index.

Product Availability

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

Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Removes all of the IServerInfo objects in the collection.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

void add(IServerInfo serverInfo)
         throws IOException,
                AutomationException
Adds an IServerInfo object to the end of the collection.

Product Availability

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

Parameters:
serverInfo - A reference to a com.esri.arcgis.server.IServerInfo (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

void insert(int index,
            IServerInfo serverInfo)
            throws IOException,
                   AutomationException
Inserts an IServerInfo object into the collection at the specified index.

Product Availability

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

Parameters:
index - The index (in)
serverInfo - A reference to a com.esri.arcgis.server.IServerInfo (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.