Select from following answers:- Query the Orders collection using a QueryOperationResponse. Check the returned QueryOperationResponse object's Status property.
- Query the Orders collection within a try catch block that includes a handler for the DataServiceRequestException exception.
- Add an event handler to the NorthwindEntities object's ReadingEntity event.
- All Above
To retrieve entities and the HTTP response, query the Orders collection using a QueryOperationResponse. Check the returned QueryOperationResponse object's Status property. This property gives the HTTP response.
The DataServiceRequestException exception will be thrown only if the entities cannot be retrieved. You cannot use this exception to retrieve the HTTP response code unless an error occurs.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator