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

Glossary Item Box

The DriveTimeParameters class provides input parameters for the Drive Time task.

Object Model

DriveTimeParameters 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 DriveTimeParameters and then executes a Drive Time task.
C#Copy Code
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));

Inheritance Hierarchy

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

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.