Visual Basic (Declaration) | |
---|---|
Public Overrides Sub Initialize() |
C# | |
---|---|
public override void Initialize() |
The ArcGISLocalDynamicMapServiceLayer Initialize method overrides the base Initialize method to handle the creation of the underlying LocalMapService or reuse of an existing LocalMapService if one exists with the same properties. Once the LocalMapService creation has completed the Url property is set and the base class Initialise method is called to continue the initialization process.
It is not necessary to call the Initialize method explicitly since this process will be initiated by the Map when the layer is added to the ESRI.ArcGIS.Client.Map.Layers collection.
If the LocalMapService creation encountered an error the InitializationFailure property will contain the exception.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8