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

Glossary Item Box

The PointsInPolygonReportParameters class provides input parameters for the Points in Polygon Report task.

Object Model

PointsInPolygonReportParameters ClassExtentData ClassBoundaries ClassPointLayer ClassFolderItem ClassOutputTypes ClassBAResultType ClassReportOptions Class

Syntax

Remarks

The analysis can be restricted to an analysis extent if the AnalysisExtent parameter is specified. The AdditionalFields parameter allows user to show additional fields of the boundary layer in the report.

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 PointsInPolygonReportParameters and then executes a Points in Polygon Report task.
C#Copy Code
PointsInPolygonReportParameters parameters = new PointsInPolygonReportParameters();
            
// 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("Store 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)};
            
// Set FeatureLayer as a list of PointRecord using implicit cast operator.
parameters.FeatureLayer = points;
            
// The Boundaries type could take either data as
// ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem, 
// or ESRI.ArcGIS.Client.BACore.StandardLayer, e.g.
//Boundaries boundaries = new Boundaries(new StandardLayer("US.ZIP5", zipCodesArray));
            
// Set BoundaryLayer with a valid data type.
parameters.BoundaryLayer = boundaries;
            
// Set name of the unique area ID field in the BoundaryLayer layer.
parameters.BoundaryIDField = "ID";
            
// Set additional fields of the FeatureLayer layer.
parameters.AdditionalFields = new List<string>(){ "name" };
            
// Set report parameters. 
parameters.StandardReportOptions = new ReportOptions("PDF");
 
pointsInPolygonReportTask.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.PointsInPolygonReportParameters

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.