ESRI.ArcGIS.ADF.IMS
MapView Constructor(MapService,String)
See Also  Send Feedback
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 New 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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.