Aqueduct.Extensions.ResponseExtensions.RedirectPermanent C# (CSharp) Метод

RedirectPermanent() публичный статический Метод

Perform a permanent (301) redirection to the url provided
public static RedirectPermanent ( this response, string url ) : void
response this
url string
Результат void
        public static void RedirectPermanent (this HttpResponse response, string url)
        {
            response.Redirect (url, false);
            response.StatusCode = 301;
            response.StatusDescription = "Permanently moved";
            response.End ();
        }
    }
ResponseExtensions