PrepAway - Latest Free Exam Questions & Answers

Which objects can you check to achieve this goal?

You are developing a Windows Store app.
You need to find out whether an HTTP request has completed with an Unauthorized result.
Which objects can you check to achieve this goal? (Each correct answer presents a complete solution. Choose
all that apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
HttpResponseMessage.StatusCode

B.
HttpResponseMessage.IsUnauthorized

C.
HttpResponseMessage.ReasonPhrase

D.
HttpResponseMessage.IsSuccessStatusCode

3 Comments on “Which objects can you check to achieve this goal?

  1. Parker says:

    the current answer is A D.
    Some post said that should use HttpResponseMessage.ReasonPhrase.
    this property is used to return additional custom message.
    you can’t judge the state form custom string.




    0



    0
  2. Alan says:

    A & C

    HttpResponseMessage.StatusCode == HttpStatusCode.Unauthorized
    HttpResponseMessage.ReasonPhrase == “Unauthorized”

    D is false:

    IsSuccessStatusCode is true if StatusCode is in the Successful range (200-299).




    0



    0

Leave a Reply