Community Analyst API for Silverlight 2.2 Reference
ReturnStdGeographyParameters Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAO.Tasks.StdGeographies Namespace : ReturnStdGeographyParameters Class

Glossary Item Box

The ReturnStdGeographyParameters class provides input parameters for the Return Standard Geography task.

Object Model

ReturnStdGeographyParameters ClassBAResultType Class

Syntax

Remarks

The GeoLevelIDs parameter specifies IDs of the standard geography levels to search geography features in.

The location point can be specified in one of three ways—by postal address, by geographic coordinates, and by ZIP code. All these ways are mutually exclusive.

The Address parameter specifies postal address fields.

The Coordinates array contains geographic coordinates of the point (latitude and longitude).

The ZIP parameter specifies the location ZIP code. The centroid point of the given ZIP is used.

Example

The code snippet below creates ReturnStdGeographyParameters and then executes a Return Standard Geography task.
C#Copy Code
ReturnStdGeographyParameters parameters = new ReturnStdGeographyParameters();
            
// Multiple standard geography layers can be specified in this array.
parameters.GeoLevelIDs = new List<string>(){"US.Counties","US.States"};
            
// One and only one of the three locations need be specified - address, coordinates or zip. 
parameters.Address = new List<string>(){"380 New York St.", "Redlands", "CA"};
//parameters.Coordinates = new List<double>(){mapPoint.x, mapPoint.y};
//parameters.ZIP = "92373";
 
returnStdGeographyTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BABaseParameters
      ESRI.ArcGIS.Client.BACore.Client.BAUtilityParameters
         ESRI.ArcGIS.Client.BAO.Tasks.StdGeographies.ReturnStdGeographyParameters

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.