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)
'Declaration
Public Function IsLocalUrl ( _
url As String _
) As Boolean
'Usage
Dim instance As UrlHelper
Dim url As String
Dim returnValue As Boolean
returnValue = instance.IsLocalUrl(url)
C#
public bool IsLocalUrl(
string url
)
public:
bool IsLocalUrl(
String^ url
)
member IsLocalUrl :
url:string -> bool
public function IsLocalUrl(
url : String
) : boolean
url
Type: System.StringThe URL.
Type: System.Boolean
true if the URL is local; otherwise, false.