UrlHelper.IsValidUrl Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

IsValidUrl(string, UriKind)

Returns a value indicating if the url is valid, given the supplied kind.

public static bool IsValidUrl(this string url, UriKind kind)

Parameters

url
string

The url to test.

kind
System.UriKind

The System.UriKind to test validity against.

Returns

bool

True if the url is valid, otherwise false.