1.

Select the properties related to the network errors generated by WebException:(a) response(b) get(c) set(d) none of the mentionedThe question was asked in quiz.My question is based upon Network Errors Handling in section Namespaces, Preprocessors and Networking of C#

Answer»

The correct option is (a) response

The explanation: WebException has two properties that RELATE to NETWORK errors: Response and Status. We can obtain a reference to the WebResponse object inside an exception handler through the Response property. For the HTTP PROTOCOL, this object DESCRIBES the error. It is DEFINED like this:



Discussion

No Comment Found

Related InterviewSolutions