Provides access to members that have information about the GIS server connection..
Members
Name | Description | |
---|---|---|
FullName | The AGSServerConnectionName object assiated with the GIS server connection. | |
Name | The name of the connection. | |
ServerObjectNames | The ServerObjectNames in the GIS server. |
IAGSServerConnection.FullName Property
The AGSServerConnectionName object assiated with the GIS server connection.
Remarks
The FullName property gets and sets the AGSServerConnectionNamename object. The AGSServerConnectionNamefor an AGSServerConnection can be persisted, for example, in a map document. An application can call the Openmethod on the AGSServerConnection name after loading it from persistent storage in order to connect to and get an object reference to the GIS server or web service catalog.
IAGSServerConnection.Name Property
The name of the connection.
IAGSServerConnection.ServerObjectNames Property
The ServerObjectNames in the GIS server.
Remarks
Returns an enumeration of the AGSServerObjectName objects in the GIS server or web service catalog. Note, if the application that uses this interface is running as a user in the GIS server's users group (agsusers), and connects directly to a GIS server over a LAN, this method will return only the server objects which are started. If the application that uses this interface is running as a user in the GIS server's administrators group (agsadmin), this method will return all server objects.
Classes that implement IAGSServerConnection
Classes | Description |
---|---|
AGSServerConnection | The AGSServerConnection object for connecting to the GIS server and getting the ServerObjectManager and ServerObjectAdmin. |
Remarks
An AGSServerConnectionis a connection to a GIS server or web service catalog. Both contain server objects such as MapServer and GeocodeServer server objects. IAGSServerConnection provides methods to get references to server objects the server or web service catalog.
The GetServerObjectNames method returns the AGSServerObjectName objects for all of the server objects in the GIS server or web service catalog.
The FullName property gets and sets the AGSServerConnectionNamename object. The AGSServerConnectionNamefor an AGSServerConnection can be persisted, for example, in a map document. An application can call the Openmethod on the AGSServerConnection name after loading it from persistent storage in order to connect to and get an object reference to the GIS server or web service catalog.
The MapServer and GeocodeServer objects that you obtain from IAGSServerConnection support only the coarse-grained, stateless methods associated with the server object. You can't use a MapServer or GeocodeServer object obtained from IAGSServerConnection to get references to the finer-grained objects associated with the server object, not can you change any aspects of the server object's state. Server objects obtained from LAN connections or web service catalog AGSServerConnections can be used in the same way, so if you are writing applications that need to work with both LAN and web service catalog conneciton to a GIS server, use AGSServerConnectionand its associated objects.
When you get a server object using the ArcCatalog objects (GxAGSServerConnection) and ArcMap (MapServerLayer ), you are working through an AGSServerConnection.
If you want to work with a server object in a stateful manner, or you want to work with the finer-grained ArcObjects associated with a server object, you must obtain that server object by getting a reference to its server context from the ServerObjectManager. You can get the ServerObjectManager by either connecting to the GIS server using a GISServerConnection object, or by getting it from the AGSServerConnection.