Open Method
Opens the asset with the requested URI.
Definition
Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Stream Open(
Uri uri,
Uri? baseUri = null
)
Public Shared Function Open (
uri As Uri,
Optional baseUri As Uri = Nothing
) As Stream
static member Open :
uri : Uri *
?baseUri : Uri
(* Defaults:
let _baseUri = defaultArg baseUri null
*)
-> Stream
Parameters
Return Value
Stream
A stream containing the asset contents.
Exceptions
FileNotFoundException | The asset could not be found. |