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

Glossary Item Box

The AssignCustomersByTradeAreaParameters class provides input parameters for the Assign Customers by Trade Area task.

Object Model

AssignCustomersByTradeAreaParameters ClassExtentData ClassBoundaries ClassPointLayer ClassFolderItem ClassOutputTypes ClassRenderingParameters ClassBAResultType Class

Syntax

Remarks

The analysis can be restricted to an analysis extent if the analysisExtent parameter is specified.

Output options for this task include rendering an output image (OutputTypes.GetMapImage) and/or creating a feature class for subsequent analysis (OutputTypes.GetFeatureClass). If no output options are specified, the required output options are specified as follows. If the RenderingParameters parameter is specified, the image output is requested. If the OutputAnalysisItem parameter is specified, the output analysis feature class will be stored in the repository. If both RenderingParameters and OutputAnalysisItem parameters are missing, the feature class output is requested.

Example

The code snippet below creates AssignCustomersByTradeAreaParameters and then executes an Assign Customers by Closest Store task.
C#Copy Code
AssignCustomersByTradeAreaParameters parameters = new AssignCustomersByTradeAreaParameters();
             
// The PointLayer type could take either data as
// ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem,
// or a list of ESRI.ArcGIS.Client.BACore.PointRecord items.
parameters.Customers = new PointLayer(customers);
             
// Set the name of field in the Customers layer to be used for assignment customers with stores. 			
parameters.CustomerLinkField = "STORE_ID";
             
// The Boundaries type could take either data as
// ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem, 
// or ESRI.ArcGIS.Client.BACore.StandardLayer.
parameters.Boundaries = boundaries;
             
// Set the name of store ID field in the Boundaries layer. "STORE_ID" is the default value.
//parameters.StoreIDField = "STORE_ID";
             
// Optionally restrict analysis to ExtendData object specified with myExtent.
//parameters.AnalysisExtent = myExtent;
             
assignCustomersByTradeAreaTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
      ESRI.ArcGIS.Client.BACore.Client.AnalysisParameters
         ESRI.ArcGIS.Client.BAServer.Tasks.AnalysisParameters
            ESRI.ArcGIS.Client.BAServer.Tasks.CustomerStoreSetup.AssignCustomersByTradeAreaParameters

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.