UrlHelper.IsLocalUrl Method (String)

 

Returns a value that indicates whether the URL is local.

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

Syntax

public virtual bool IsLocalUrl(
    string url
)
public:
virtual bool IsLocalUrl(
    String^ url
)
abstract IsLocalUrl : 
        url:string -> bool
override IsLocalUrl : 
        url:string -> bool
Public Overridable Function IsLocalUrl (
    url As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the URL is local; otherwise, false.

See Also

UrlHelper Class
System.Web.Mvc Namespace

Return to top