Click or drag to resize
URLHelperTryCreateAbsoluteUrl Method
Returns true if provided URL is absolute in platform agnostic manner. On Windows platform preserves semantics of TryCreate(String, UriKind, Uri). On Unix platforms it also ensures that relative urls are not considered as absolute file paths.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static bool TryCreateAbsoluteUrl(
	string url,
	out Uri result
)

Parameters

url
Type: SystemString
URL to check.
result
Type: SystemUri
When this method returns, contains the constructed System.Uri.

Return Value

Type: Boolean
See Also