UrlHelper.IsLocalUrl Method

Returns a value that indicates whether the URL is local.

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

Syntax

C#
public bool IsLocalUrl(
    string url
)

Parameters

Return Value

Type: System.Boolean
true if the URL is local; otherwise, false.

See Also

Reference

UrlHelper Class

System.Web.Mvc Namespace