ESRI.ArcGIS.ADF.IMS
MapService Constructor(IMSServerConnection,InitializationParameters,Boolean)
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class > MapService Constructor : MapService Constructor(IMSServerConnection,InitializationParameters,Boolean)




connection
initializationParameters
initializeOnConstruction
Construct a MapService object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal connection As IMSServerConnection, _
   ByVal initializationParameters As InitializationParameters, _
   ByVal initializeOnConstruction As Boolean _
)
Visual Basic (Usage)Copy Code
Dim connection As IMSServerConnection
Dim initializationParameters As InitializationParameters
Dim initializeOnConstruction As Boolean
 
Dim instance As MapService(connection, initializationParameters, initializeOnConstruction)
C# 
public MapService( 
   IMSServerConnection connection,
   InitializationParameters initializationParameters,
   bool initializeOnConstruction
)

Parameters

connection
initializationParameters
initializeOnConstruction

Example

See the first example in the MapService overview.

Remarks

If the map web controls are used in the web application, you can obtain a MapService object from the Map or MapResourceManager. If not using the web controls, or you need to access a map service not yet used in the page, then a MapService object can be constructed to access an ArcIMS map service.

If initializeOnConstruction is set to false, then you must use the Initialize() method before getting properties of the object or using any of the methods for creating a MapView or LayoutView.

See Also

© 2010 All Rights Reserved.