UrlHelperBase.IsLocalUrl(String) Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether the URL is local. A URL is considered local if it does not have a host / authority part and it has an absolute path. URLs using virtual paths ('~/') are also local.
public:
 virtual bool IsLocalUrl(System::String ^ url);public virtual bool IsLocalUrl(string? url);public virtual bool IsLocalUrl(string url);abstract member IsLocalUrl : string -> bool
override this.IsLocalUrl : string -> boolPublic Overridable Function IsLocalUrl (url As String) As BooleanParameters
- url
- String
The URL.
Returns
true if the URL is local; otherwise, false.