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




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.
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 _
)
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 instance As InitializationParameters(screenDpi, loadRenderers, loadFields, loadLayerExtents, loadExtensions)
C# 
public InitializationParameters( 
   ushort screenDpi,
   bool loadRenderers,
   bool loadFields,
   bool loadLayerExtents,
   bool loadExtensions
)

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.

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.