ESRI.ArcGIS.ADF.IMS
MapView Constructor(MapService,String)
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapView Class > MapView Constructor : MapView Constructor(MapService,String)




mapService
The MapService from which to create the new MapView.
dataFrameName
Name of the data frame to derive the MapView from.
Constructs a MapView object from a specific DataFrame of a specific MapService.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal mapService As MapService, _
   ByVal dataFrameName As String _
)
Visual Basic (Usage)Copy Code
Dim mapService As MapService
Dim dataFrameName As String
 
Dim instance As MapView(mapService, dataFrameName)
C# 
public MapView( 
   MapService mapService,
   string dataFrameName
)

Parameters

mapService
The MapService from which to create the new MapView.
dataFrameName
Name of the data frame to derive the MapView from.

Example

For an example of creating a MapView tied to a data frame, see MapService.CreateMapView(string).

Remarks

Use this form of the constructor if you want the MapView to use a specific data frame in an ArcMap Server image service.

To use this method, the LoadDataFrames argument in InitializationParameters used to initialize MapService must either be "#ALL#" (to retrieve all data frame information) or be the name of the data frame to be used here.

Note: If using the Map web control, you can retrieve the MapView associated with the Map control; see the MapView overview for an example.

See Also

© 2010 All Rights Reserved.