Esri Business Analyst Server API for Silverlight 2.2 Reference
AddLayersToMapTask Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAServer.Tasks.Rendering Namespace : AddLayersToMapTask Class

Glossary Item Box

The Add Layers to Map task adds repository layer items to the default map.

Object Model

AddLayersToMapTask ClassAbstractClient ClassITokenProvider Interface

Syntax

Remarks

A layer is added to the map under the name specified with the LayerName parameter of its LayerItem instance. If this parameter is missing, the name of the repository item is used as the layer name.

Layers temporary added to the default map are removed when the Business Analyst Server Map Service restarts.

The result of this task is a Boolean variable whose value is always true.

Example

The code snippet below executes an Add Layers to Map task.
C#Copy Code
// The layerItems parameter specifies a list of repository layers to be added to the map.
            
addLayersToMapTask.ExecuteAsync(layerItems, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.AbstractTask
      ESRI.ArcGIS.Client.BACore.Client.BATask<TResult,TEventArgs>
         ESRI.ArcGIS.Client.BAServer.Tasks.BAServerTask<TResult>
            ESRI.ArcGIS.Client.BAServer.Tasks.Rendering.AddLayersToMapTask

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

© 2010-2012 Esri, Inc. All Rights Reserved.