Skip to main content

HyperlinkUriHelper.EnsureUriIsValid(String) Method

Check whether the hyperlink URI is valid.

Namespace: DevExpress.Office

Assembly: DevExpress.Office.v23.2.Core.dll

NuGet Packages: DevExpress.Office.Core, DevExpress.Win.Navigation

Declaration

public static string EnsureUriIsValid(
    string uri
)

Parameters

Name Type Description
uri String

A hyperlink Uri that needs to be checked.

Returns

Type Description
String

A string value that is the valid Uri.

Remarks

If the hyperlink Uri passed as a uri parameter is invalid, the EnsureUriIsValid method returns the corrected Uri.

See Also