
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 DriveTimeParameters and then executes a Drive Time task.
C# | ![]() |
---|---|
DriveTimeParameters parameters = new DriveTimeParameters(); // 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); // DriveTimeUnits.esriDriveTimeUnitsMinutes is the default value for DistanceUnits. parameters.DistanceUnits = DriveTimeUnits.esriDriveTimeUnitsMinutes; parameters.Radii = new List<double>() { 3, 5, 10 }; // 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("3-5-7 Min Drive Time Study Areas"); parameters.ReportOptions = new <ReportOptions>() { reportOptions }; driveTimeTask.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.DriveTimeParameters
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