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

Glossary Item Box

The Upload Shapefile task uploads a shapefile into the repository.

Object Model

UploadShapefileTask ClassAbstractClient ClassITokenProvider Interface

Syntax

Remarks

The upload process consists of two steps. In the first step, you should somehow upload a zip-archive with a shapefile file to the ArcGIS Server virtual output directory. In the second step, you can upload the contents of this archive to an item of the Business Analyst Server repository using this task.

The result of this task is true if the shapefile was successfully uploaded.

Example

The code snippet below executes an Upload Shapefile task.
C#Copy Code
// shapefileUrl is an URL to zipped shapefile in ArcGIS output directory.
// outputItem is a repository item to upload shapefile to.
// shapefileInfo specifies optional shapefile parameters.
            
uploadShapefileTask.ExecuteAsync(shapefileUrl, outputItem, shapefileInfo, 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.UploadShapefileTask

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.