Skip to main content

Exists Method

Checks if an asset with the specified URI exists.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

bool Exists(
Uri uri,
Uri? baseUri = null
)
View Source

Parameters

  Uri
The URI.
  Uri  (Optional)
A base URI to use if uri is relative.

Return Value

Boolean
True if the asset could be found; otherwise false.

See Also

Reference

IAssetLoader Interface
Avalonia.Platform Namespace