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 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.

Implements

IAssetLoader.Exists(Uri, Uri)

See Also

Reference

StandardAssetLoader Class
Avalonia.Platform Namespace