FRAMES | NO FRAMES |
Returns business locations matching the given search criteria.
Availability: Business Analyst Server 10.0.
TaskResultOutput SelectLocations ( SelectLocationsParameters Parameters );
Parameter | Description |
---|---|
Parameters | Configuration options for analysis. Type SelectLocationsParameters. |
Variable of type TaskResultOutput whose RecordSet property contains records with attributes of business locations selected.
The example below requests business locations whose State field contains "CA" and City field contains "Red" substrings.
C# |
// Instantiate the BAServerHelper class to access analysis methods BAServerHelper baServerHelper = new BAServerHelper(); baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter SelectLocationsParameters parameters = new SelectLocationsParameters(); parameters.GeographyLevelsFilter = new string[] { "CA", "Red", "*" }; TaskResultOutput result = baServerHelper.SelectLocations(parameters); RecordSet locationsTable = result.RecordSet; // A table with selected business locations |