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




screenDpi
Dpi of the display screen.
loadRenderers
Whether to load the layer renderer information on initialization.
loadFields
Whether to load the layer fields on initialization.
loadLayerExtents
Whether to load the layer extent information on initialization.
loadExtensions
Whether to load extension information on initialization.
loadDataFrames
Specifies the DataFrames to be loaded into this MapService. Use "#ALL#" if you want all of them. This parameter is only used with ArcMapImage Services.
Construct an InitializationParameters object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal screenDpi As UShort, _
   ByVal loadRenderers As Boolean, _
   ByVal loadFields As Boolean, _
   ByVal loadLayerExtents As Boolean, _
   ByVal loadExtensions As Boolean, _
   ByVal loadDataFrames As String _
)
Visual Basic (Usage)Copy Code
Dim screenDpi As UShort
Dim loadRenderers As Boolean
Dim loadFields As Boolean
Dim loadLayerExtents As Boolean
Dim loadExtensions As Boolean
Dim loadDataFrames As String
 
Dim instance As InitializationParameters(screenDpi, loadRenderers, loadFields, loadLayerExtents, loadExtensions, loadDataFrames)
C# 
public InitializationParameters( 
   ushort screenDpi,
   bool loadRenderers,
   bool loadFields,
   bool loadLayerExtents,
   bool loadExtensions,
   string loadDataFrames
)

Parameters

screenDpi
Dpi of the display screen.
loadRenderers
Whether to load the layer renderer information on initialization.
loadFields
Whether to load the layer fields on initialization.
loadLayerExtents
Whether to load the layer extent information on initialization.
loadExtensions
Whether to load extension information on initialization.
loadDataFrames
Specifies the DataFrames to be loaded into this MapService. Use "#ALL#" if you want all of them. This parameter is only used with ArcMapImage Services.

Example

For an example, see the MapService See also the InitializationParameters overview:T:ESRI.ArcGIS.ADF.IMS.Carto.InitializationParameters for another example of using the class.

Remarks

When a load parameter is set to false, the information for the respective objects is not loaded and those objects are not available in the MapService, or in the MapView or LayoutView created from the MapService. For example, if loadRenderers is set to false, the Renderer for each FeatureLayer in the MapView will be null (Nothing). Performance is better when fewer items are loaded.

See Also

© 2010 All Rights Reserved.