The reason i ask is because in my code below IntersectComplete2 never fires, whereas IntersectComplete does. I am trying to do an "intersect" spatialquery, which is the default, so i don't think i need to define the SpatialRelationship property of my query object.Problem is, when i get my intersect points returned, i can't tell which polygon they've intersected, I assume qt.ExecuteRelationshipQueryCompleted was designed to solve this issue.
//itterate through polygons of a storm's projected path, and intersect with location points
foreach (var feature in stormPolygons.FeatureSet.Features)
{
QueryTask qt = new QueryTask("http://serverAddress/ArcGIS/rest/services/MyData/GlobalPoints/MapServer/0");
Query q = new Query()
{
Geometry = feature.Geometry,
ReturnGeometry = true,
//SpatialRelationship = SpatialRelationship.esriSpatialRelIntersects
};
q.OutFields.Add("*");
qt.ExecuteRelationshipQueryCompleted += IntersectComplete2;
//qt.ExecuteCompleted += IntersectComplete;
qt.ExecuteAsync(q);
}