UtilHtmlIsLink(String, LinkifyLinkType) Method
Determine whether the source value is a link of
linkType type.
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.
Public Shared Function IsLink (
str As String,
linkType As LinkifyLinkType
) As Boolean
Dim str As String
Dim linkType As LinkifyLinkType
Dim returnValue As Boolean
returnValue = UtilHtml.IsLink(str, linkType)
No code example is currently available or this language may not be supported.
- str String
-
The source value.
- linkType LinkifyLinkType
-
The type of link to test.
Boolean
Returns True if the source value is a link of
linkType type; otherwise, False.
This is a code example.
No code example is currently available or this language may not be supported.
Dim value As String = "Github.com"
Dim result As Boolean = IsLink(value, LinkifyLinkType.Url)
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.