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

Glossary Item Box

The CustomerDemographicComparisonParameters class provides input parameters for the Customer Demographic Comparison task.

Object Model

CustomerDemographicComparisonParameters ClassExtentData ClassPointLayer ClassFolderItem ClassOutputTypes ClassBAResultType ClassPointLayer ClassReportOptions Class

Syntax

Remarks

Output options for this task include creating a report (OutputTypes.GetReport). You need not specify the output options for this task because the GetReport output type is set by default.

Example

The code snippet below creates CustomerDemographicComparisonParameters and then executes a Customer Demographic Comparison task.
C#Copy Code
CustomerDemographicComparisonParameters parameters = new CustomerDemographicComparisonParameters();
             
// 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, e.g.
//List<PointRecord> points = new List<PointRecord>() {
//    new PointRecord("Customer 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)};
             
// Set FirstCustomerLayer as a list of PointRecord using implicit cast operator.
parameters.FirstCustomerLayer = points;
             
// Set SecondCustomerLayer as another point layer.
parameters.SecondCustomerLayer = anotherPointLayer;
             
// Set a data extent for analysis to ExtendData object specified with myExtent.
parameters.AnalysisExtent = myExtent;
             
// Set the list of summarization fields to compare customer demographic profiles by.
parameters.Summarizations = new List<string>() {"TOTPOP_CY", "HHPOP_CY"};
            
// Set ID of a geography layer to get demography from.
parameters.GeographyLayerID = "US.BlockGroups";
             
// Set report parameters. 
parameters.StandardReportOptions = new ReportOptions("PDF");
 
customerDemographicComparisonTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
      ESRI.ArcGIS.Client.BACore.Client.StandardReportParameters
         ESRI.ArcGIS.Client.BAServer.Tasks.StandardReportParameters
            ESRI.ArcGIS.Client.BAServer.Tasks.Reports.CustomerDemographicComparisonParameters

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.