RewriteOptionsExtensions.AddRedirectToHttpsPermanent(RewriteOptions) 方法

定义

如果传入的请求是 http,则将请求重定向到 https,并返回永久重定向的 301 状态代码。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttpsPermanent(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttpsPermanent (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToHttpsPermanent : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttpsPermanent (options As RewriteOptions) As RewriteOptions

参数

返回

适用于