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

Glossary Item Box

The Add Features task adds features from a data layer to an existing feature layer in the repository.

Object Model

AddFeaturesTask ClassAbstractClient ClassITokenProvider Interface

Syntax

Remarks

Both source data layer and destination items should have the same (point or polygon) geometry type. The source layer can be a folder item, a feature record set, or an array of point records. Only attribute fields specified in the destination item are copied from source layer features. Other fields are ignored.

The result of this task is true if the features were successfully added.

Example

The code snippet below executes an Add Features task.
C#Copy Code
// sourceLayer is a point or polygon layer whose features will be added.
// destinationItem is a destination repository layer having the same geometry type as the source layer.
            
addFeaturesTask.ExecuteAsync(sourceLayer, destinationItem, 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.Repository.AddFeaturesTask

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.