Skip to main content
.NET Framework 4.5.2+

HyperlinkUriHelper.EnsureUriIsValid(String) Method

Check whether the hyperlink URI is valid.

Namespace: DevExpress.Office

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

NuGet Package: DevExpress.Office.Core

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