Share via


RenderToStringResult.RedirectUrl 屬性

定義

如果設定,請指定 ,而不是轉譯 HTML,回應應該是 HTTP 重新導向至此 URL。 如果預先呈現程式碼判斷要求的 URL 會根據 SPA 的路由組態來重新導向,就可以使用這個方法。

public:
 property System::String ^ RedirectUrl { System::String ^ get(); void set(System::String ^ value); };
public string RedirectUrl { get; set; }
member this.RedirectUrl : string with get, set
Public Property RedirectUrl As String

屬性值

適用於