HttpContextExtensions.RedirectLocal Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub RedirectLocal ( _
context As HttpContextBase, _
url As String _
)
'Usage
Dim context As HttpContextBase
Dim url As String
context.RedirectLocal(url)
public static void RedirectLocal(
this HttpContextBase context,
string url
)
[ExtensionAttribute]
public:
static void RedirectLocal(
HttpContextBase^ context,
String^ url
)
static member RedirectLocal :
context:HttpContextBase *
url:string -> unit
public static function RedirectLocal(
context : HttpContextBase,
url : String
)
Parameters
- context
Type: System.Web.HttpContextBase
- url
Type: System.String
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpContextBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).