Community Analyst API for Silverlight 2.2 Reference
SimpleRingsParameters Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAO.Tasks.TradeAreas Namespace : SimpleRingsParameters Class

Glossary Item Box

The SimpleRingsParameters class provides input parameters for the Simple Rings task.

Object Model

SimpleRingsParameters ClassOutputTypes ClassBAResultType ClassPointLayer Class

Syntax

Remarks

Output options for this task include creating a feature class for subsequent analysis (OutputTypes.GetFeatureClass), rendering an output image (OutputTypes.GetMapImage), and creating a report (OutputTypes.GetReport). If no output options are specified, the required output options are specified as follows. If the ReportOptions parameter is specified, the report output is requested. Otherwise, the feature class output is requested.

Example

The code snippet below creates SimpleRingsParameters and then executes a Simple Rings task.
C#Copy Code
SimpleRingsParameters parameters = new SimpleRingsParameters();
            
// Stores is a PointLayer that could take either data as type 
// ESRI.ArcGIS.Client.Tasks.FeatureSet or an array of ESRI.ArcGIS.Client.BACore.PointRecord types, e.g.
//List<PointRecord> points = new List<PointRecord>() {
//    new PointRecord("store_1", "Store 1", "1", 34.052074, -117.207841)
//};
parameters.Stores = new PointLayer(points);
            
// esriUnits.esriMiles is the default value for DistanceUnits.
parameters.DistanceUnits = esriUnits.esriMiles;
            
parameters.Radii = new List<double>() { 1, 3, 5 };
            
// false is the default value for Donut.
//parameters.Donut = false;
            
// STORE_ID is the default value for StoreIDField.
//parameters.StoreIDField = "STORE_ID";
            
// Set report options.
ReportOptions reportOptions = new ReportOptions("PDF", "market_profile");
reportOptions.Header = new ReportHeader("1-3-5 Mile Ring Study Areas");
parameters.ReportOptions = new <ReportOptions>() { reportOptions };
            
simpleRingsTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
      ESRI.ArcGIS.Client.BACore.Client.SummaryReportParameters
         ESRI.ArcGIS.Client.BAO.Tasks.TradeAreas.SimpleRingsParameters

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.