PageModel.LocalRedirectPermanentPreserveMethod(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
LocalRedirectResult使用指定的 localUrl
建立物件, Permanent 並將 設定為 true,並將 PreserveMethod 設定為 true (Status308PermanentRedirect) 。
public:
virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirectPermanentPreserveMethod(System::String ^ localUrl);
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod (string localUrl);
abstract member LocalRedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirectPermanentPreserveMethod (localUrl As String) As LocalRedirectResult
參數
- localUrl
- String
要重新導向至的本機 URL。
傳回
為回應建立 LocalRedirectResult 的 。