ESRI.ArcGIS.ADF.IMS | |
Connection Property | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : Connection Property |
Visual Basic (Declaration) | |
---|---|
Public Property Connection As IMSServerConnection |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public IMSServerConnection Connection {get; set;} |
This example retrieves the Connection from an existing MapService object and prints
the ArcIMS server name and port (this assumes we are using a TCPConnection to the
server).
C# | Copy Code |
---|---|
ESRI.ArcGIS.ADF.Connection.IMS.TCPConnection conn |
Visual Basic | Copy Code |
---|---|
Dim conn As ESRI.ArcGIS.ADF.Connection.IMS.TCPConnection _ |
This is the connection used to communicate with the ArcIMS service. The connection is specified when creating the MapService, and is read-only.
The property takes an instance of the abstract class IMSServerConnection. When reading the connection, cast it to the appropriate type of TCPConnection or HTTPConnection in order to read properties specific to the type.