IsRedirectionResponse static method

bool IsRedirectionResponse(
  1. IEwsHttpWebResponse httpWebResponse
)
Determines whether response is a redirection. The HTTP web response.

Implementation

static bool IsRedirectionResponse(IEwsHttpWebResponse httpWebResponse) {
  return (httpWebResponse.StatusCode == HttpStatusCode.Redirect) ||
      (httpWebResponse.StatusCode == HttpStatusCode.Moved) ||
      (httpWebResponse.StatusCode == HttpStatusCode.RedirectKeepVerb) ||
      (httpWebResponse.StatusCode == HttpStatusCode.RedirectMethod);
}