Interface IAssetLocator
Interface for locating and loading assets by token and type.
Namespace: Serenity.Global.Application.Interfaces
Assembly: Serenity.Global.Application.dll
Syntax
public interface IAssetLocator
Methods
TryLoad(string, Type, out object)
Attempts to load an asset based on the provided token and type.
Declaration
bool TryLoad(string token, Type type, out object asset)
Parameters
| Type | Name | Description |
|---|---|---|
| string | token | The token identifying the asset. |
| Type | type | The type of the asset to load. |
| object | asset | The loaded asset if found; otherwise, null. |
Returns
| Type | Description |
|---|---|
| bool | True if the asset was successfully loaded; otherwise, false. |