
Visual Basic (Declaration)
C#
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.
The code snippet below creates SimpleRingsParameters and then executes a Simple Rings task.
C# | ![]() |
---|---|
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)); |
System.Object
ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
ESRI.ArcGIS.Client.BACore.Client.SummaryReportParameters
ESRI.ArcGIS.Client.BAO.Tasks.TradeAreas.SimpleRingsParameters
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