Select the properties related to the network errors generated by WebException:

a) response
b) get
c) set
d) none of the mentioned

1 thought on “Select the properties related to the network errors generated by WebException:”

  1. a
    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:
    public WebResponse Response { get; }
    When an error occurs, we can use the Status property of WebException to find out what went wrong. It is defined like this:

    public WebExceptionStatus Status {get; }

Leave a Comment