RedirectToPageResult Constructors

Definition

Overloads

RedirectToPageResult(String)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, Object)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object, Boolean)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object, Boolean, Boolean)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object, Boolean, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String, String, Object, Boolean, Boolean, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

RedirectToPageResult(String)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName);
public RedirectToPageResult (string pageName);
public RedirectToPageResult (string? pageName);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String)

Parameters

pageName
String

The page to redirect to.

Applies to

RedirectToPageResult(String, Object)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::Object ^ routeValues);
public RedirectToPageResult (string pageName, object routeValues);
public RedirectToPageResult (string? pageName, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, routeValues As Object)

Parameters

pageName
String

The page to redirect to.

routeValues
Object

The parameters for the route.

Applies to

RedirectToPageResult(String, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler);
public RedirectToPageResult (string pageName, string pageHandler);
public RedirectToPageResult (string? pageName, string? pageHandler);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String)

Parameters

pageName
String

The page to redirect to.

pageHandler
String

The page handler to redirect to.

Applies to

RedirectToPageResult(String, String, Object)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object)

Parameters

pageName
String

The page to redirect to.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the route.

Applies to

RedirectToPageResult(String, String, Object, Boolean)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, bool permanent);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues, bool permanent);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues, bool permanent);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj * bool -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object, permanent As Boolean)

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the page.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

Applies to

RedirectToPageResult(String, String, Object, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, System::String ^ fragment);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues, string fragment);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object, fragment As String)

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the route.

fragment
String

The fragment to add to the URL.

Applies to

RedirectToPageResult(String, String, Object, Boolean, Boolean)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, bool permanent, bool preserveMethod);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues, bool permanent, bool preserveMethod);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues, bool permanent, bool preserveMethod);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj * bool * bool -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean)

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the page.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

preserveMethod
Boolean

If set to true, make the temporary redirect (307) or permanent redirect (308) preserve the initial request method.

Applies to

RedirectToPageResult(String, String, Object, Boolean, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, bool permanent, System::String ^ fragment);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues, bool permanent, string fragment);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues, bool permanent, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object, permanent As Boolean, fragment As String)

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the page.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

fragment
String

The fragment to add to the URL.

Applies to

RedirectToPageResult(String, String, Object, Boolean, Boolean, String)

Initializes a new instance of the RedirectToPageResult with the values provided.

public:
 RedirectToPageResult(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, bool permanent, bool preserveMethod, System::String ^ fragment);
public RedirectToPageResult (string pageName, string pageHandler, object routeValues, bool permanent, bool preserveMethod, string fragment);
public RedirectToPageResult (string? pageName, string? pageHandler, object? routeValues, bool permanent, bool preserveMethod, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToPageResult : string * string * obj * bool * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Sub New (pageName As String, pageHandler As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean, fragment As String)

Parameters

pageName
String

The name of the page.

pageHandler
String

The page handler to redirect to.

routeValues
Object

The parameters for the page.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

preserveMethod
Boolean

If set to true, make the temporary redirect (307) or permanent redirect (308) preserve the initial request method.

fragment
String

The fragment to add to the URL.

Applies to