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)

public static bool Exists(
Uri uri,
Uri? baseUri = null
)

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​

AssetLoader Class
Avalonia.Platform Namespace