| Visual Basic (Declaration) | |
|---|---|
| Public Event SolveClosestFacilityCompleted As EventHandler(Of RouteEventArgs) | |
| C# | |
|---|---|
| public event EventHandler<RouteEventArgs> SolveClosestFacilityCompleted | |
The event handler receives an argument of type RouteEventArgs containing data related to this event. The following RouteEventArgs properties provide information specific to this event.
| Property | Description | 
|---|---|
| Barriers | Barriers are returned only if BaseRouteParameters.ReturnBarriers was set to true (which is not the default). If you send in the barriers as a featureSet (instead of using DataLayer), you already have the barriers and might not need to request them back from the server. | 
| Facilities | Facilities are returned only if RouteClosestFacilityParameters.ReturnFacilities or RouteServiceAreaParameters.ReturnFacilities was set to true. | 
| Incidents | Incidents are returned only if RouteClosestFacilityParameters.ReturnIncidents was set to true (which is not the default). | 
| Messages | The solution messages (if returned in the server response) are an array of GPMessage instances. | 
| PolygonBarriers | Polygon barriers are returned only if BaseRouteParameters.ReturnPolygonBarriers was set to true (which is not the default). | 
| PolylineBarriers | Polyline barriers are returned only if BaseRouteParameters.ReturnPolylineBarriers was set to true (which is not the default). | 
| RouteResults | The route results is an array of RouteResult instances. | 
| ServiceAreaPolygons | Service area polygons are returned from RouteTask.SolveClosestFacilityAsync | 
| ServiceAreaPolylines | Service area polylines are returned from RouteTask.SolveClosestFacilityAsync | 
| UserState (Inherited from ESRI.ArcGIS.Client.Tasks.TaskEventArgs) | Gets the unique identifier for the asynchronous task. | 
Target Platforms:Windows Phone 7
 
     
     
     
     
    