Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

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)
public bool IsLocalUrl(
	string url
)

Parameters

url
Type: System.String
The URL.

Return Value

Type: System.Boolean
true if the URL is local; otherwise, false.
Show:
© 2014 Microsoft. All rights reserved.