OpenAndGetAssembly Method
Opens the asset with the requested URI and returns the asset stream and the assembly containing the asset.
Definition
Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public (Stream stream, Assembly assembly) OpenAndGetAssembly(
Uri uri,
Uri? baseUri = null
)
Public Function OpenAndGetAssembly (
uri As Uri,
Optional baseUri As Uri = Nothing
) As (stream As Stream, assembly As Assembly)
abstract OpenAndGetAssembly :
uri : Uri *
?baseUri : Uri
(* Defaults:
let _baseUri = defaultArg baseUri null
*)
-> ValueTuple<Stream, Assembly>
override OpenAndGetAssembly :
uri : Uri *
?baseUri : Uri
(* Defaults:
let _baseUri = defaultArg baseUri null
*)
-> ValueTuple<Stream, Assembly>
Parameters
Return Value
ValueTuple(Stream, Assembly)
The stream containing the resource contents together with the assembly.
Implements
IAssetLoader.OpenAndGetAssembly(Uri, Uri)Exceptions
FileNotFoundException | The asset could not be found. |