UtilHtmlIsLink(String, LinkifyPlugins) Method
Determine whether the source value is a link.
This function internally uses linkify JavaScript library (
https://linkify.js.org/).
Note that linkify is not 100% spec compliant,
so this function may return some false positives or false negatives.
Namespace: DevCase.Core.DataProcessing.HtmlAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
static member IsLink :
str : string *
?plugins : LinkifyPlugins
(* Defaults:
let _plugins = defaultArg plugins LinkifyPlugins.None
*)
-> bool
No code example is currently available or this language may not be supported.
- str String
-
The source value.
- plugins LinkifyPlugins (Optional)
-
Optional plugin flags that enables detection of additional link types.
By default this function only detects domain urls and email addresses.
Default value: None
Boolean
Returns True if the source value is a link; otherwise, False.
This is a code example.
No code example is currently available or this language may not be supported.
Dim value As String = "127.0.0.1"
Dim plugins As LinkifyPlugins = LinkifyPlugins.All
Dim result As Boolean = IsLink(value, plugins)
Console.WriteLine(result)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.