Method ToUri
ToUri(string, string?)
A link to an address, written as an external relationship of the link's part.
public static HyperlinkTarget ToUri(string uri, string? tooltip = null)
Parameters
uristringThe address: 1 to MaxUriLength characters, no control characters.
tooltipstringThe tooltip, or null: at most MaxTooltipLength characters, no control characters.
Returns
- HyperlinkTarget
The target.
Exceptions
- ArgumentNullException
uriis null.- ArgumentException
A value is empty, too long or holds a control character.