Business Analyst Online API for Silverlight 2.2 Reference
InitializeGeographyLevelsFromXML Method
See Also  Send Feedback
ESRI.ArcGIS.Client.BACore.ThematicMapping Namespace > TMQueryTask Class : InitializeGeographyLevelsFromXML Method

geographyLevels
An XML containing geography levels.

Glossary Item Box

Initializes the list of geography levels from XML.

Syntax

 
Visual Basic (Declaration)
C#
 
 

Parameters

geographyLevels
An XML containing geography levels.

Remarks

Geography levels of this task can be initialized only once using the InitializeGeographyLevels or InitializeGeographyLevelsFromXML method. Geography levels should be initialized before using the InitializeAsync and ExecuteAsync methods.

Example

The example below shows the structure of XML parsed by this method.
             <GeographyLevels>
               <GeographyLevel name="Some Name" alias="Some Alias">	
                 <GeographyLayer
                   url="Some URL 1";
                   name="Some name";
                   scale="25000000"
                   generalizationLevel="1";
                   nameField="some nameField";
                   idField="some idField";
                 />	
                 <GeographyLayer
                   url="Some URL 2";
                   name="Some name";
                   scale="150000000"
                   generalizationLevel="2";
                   nameField="some nameField";
                   idField="some idField";
                 />	
               </GeographyLevel> 
               <GeographyLevel name="Another Name" alias="Another Alias">	
                 <GeographyLayer
                   url="Another URL 1";
                   name="Another name";
                   scale="25000000"
                   generalizationLevel="1";
                   nameField="some nameField";
                   idField="some idField";
                 />	
                 <GeographyLayer
                   url="Another URL 2";
                   name="Another name";
                   scale="150000000"
                   generalizationLevel="2";
                   nameField="some nameField";
                   idField="some idField";
                 />	
               </GeographyLevel> 
             </GeographyLevels>
             

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.