![]() ![]() |
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.
Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal mapService As MapService, _ ByVal dataFrameName As String _ ) |
Visual Basic (Usage) | ![]() |
---|---|
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.
For an example of creating a MapView tied to a data frame, see MapService.CreateMapView(string).
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.
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