IUrlTransformer.TryTransformUrl Method

Namespace
Kampute.DocToolkit.Routing
Assembly
  • Kampute.DocToolkit.dll

Definition

Attempts to transform a URL string to a different URL.
bool TryTransformUrl(string urlString, [NotNullWhen(true)] out Uri transformedUrl)

Parameters

urlString string
The URL string to transform.
transformedUrl Uri
When this method returns, contains the transformed URL if the method returns true; otherwise, null. This parameter is passed uninitialized.

Returns

bool
true if the URL was transformed; otherwise, false.