RequestExtensions.IsUrlLocalToHost Method

Determines whether the specified URL references the local computer.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsUrlLocalToHost ( _
    request As HttpRequestBase, _
    url As String _
) As Boolean
'Usage
Dim request As HttpRequestBase 
Dim url As String 
Dim returnValue As Boolean 

returnValue = request.IsUrlLocalToHost(url)
public static bool IsUrlLocalToHost(
    this HttpRequestBase request,
    string url
)
[ExtensionAttribute]
public:
static bool IsUrlLocalToHost(
    HttpRequestBase^ request, 
    String^ url
)
static member IsUrlLocalToHost : 
        request:HttpRequestBase * 
        url:string -> bool
public static function IsUrlLocalToHost(
    request : HttpRequestBase, 
    url : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the specified URL references the local computer; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestBase. 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).

See Also

Reference

RequestExtensions Class

System.Web.WebPages Namespace