ResourceProvider.Load Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Load(String) |
Loads a generic resource by name and returns it as data. |
| Load(String, String) |
Loads a generic resource specified by path and name, and returns it as data. |
Load(String)
Loads a generic resource by name and returns it as data.
public SkiaSharp.SKData? Load(string resourceName);
Parameters
- resourceName
- String
The name of the resource to load.
Returns
The resource data, or null if the resource could not be loaded.
Remarks
This is equivalent to calling Load(String, String) with an empty path.
Applies to
Load(String, String)
Loads a generic resource specified by path and name, and returns it as data.
public SkiaSharp.SKData? Load(string resourcePath, string resourceName);
Parameters
- resourcePath
- String
The path to the resource directory.
- resourceName
- String
The name of the resource to load.
Returns
The resource data, or null if the resource could not be loaded.
Remarks
This method is typically used to load nested animations or other generic data assets.