ImageResolver.ResolveImageUrl Method
Creates an URL for the specified image.
public abstract string ResolveImageUrl( Image image, CancellationToken cancellationToken )
Parameters
- image Image
- Found image.
- cancellationToken CancellationToken
- Token for monitoring cancellation requests.
Return Value
StringURL for the specified image.
Note
Browsers will not render external images in SVG files embedded using
<img>
elements. If you implement a custom image resolver and intend to use the SVG in HTML, data URLs are preferable.Exceptions
Exception | Condition |
---|---|
OperationCanceledException | The operation was cancelled because the cancellation token was triggered. |