ArcGIS API for Silverlight - Library Reference
RelationAsync(IList<Graphic>,IList<Graphic>,GeometryRelation,String) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > GeometryService Class > RelationAsync Method : RelationAsync(IList<Graphic>,IList<Graphic>,GeometryRelation,String) Method

graphics1
The first set of graphics in the comparison.
graphics2
The second set of graphics in the comparison.
spatialRelationship
The spatial relationship to be tested between the two sets of geometries. If GeometryRelation.esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
comparisonString
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.
Computes the set of pairs of geometries from graphics1 and graphics2 that belong to the specified relation. Both arrays are assumed to be in the same spatial reference. The relations are evaluated in 2D. Z coordinates are not used. Geometry types cannot be mixed within an array. Note that if the spatialRelationship is specified as esriGeometryRelationRelation, the relationParam parameter describes the spatial relationship and must be specified. Raises the RelationCompleted event on success, or the TaskBase.Failed event on failure.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub RelationAsync( _
   ByVal graphics1 As IList(Of Graphic), _
   ByVal graphics2 As IList(Of Graphic), _
   ByVal spatialRelationship As GeometryRelation, _
   ByVal comparisonString As String _
) 

Parameters

graphics1
The first set of graphics in the comparison.
graphics2
The second set of graphics in the comparison.
spatialRelationship
The spatial relationship to be tested between the two sets of geometries. If GeometryRelation.esriGeometryRelationRelation is specified, then the comparisonString parameter must be specified.
comparisonString
The 'Shape Comparison Language' string to be evaluated. Strings such as RELATE(G1, G2, "FFFTTT***") are accepted, in addition to other kinds of strings. This string describes the spatial relationship to be tested when the spatialRelationship parameter is specified as esriGeometryRelationRelation.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

© ESRI, Inc. All Rights Reserved.