Tesla Graphics Engine Documentation (January 2012)
Load<(Of <(<'T>)>)> Method (assetName, parameters, locatorOverride)
TeslaTesla.ContentContentManagerLoad<(Of <<'(T>)>>)(String, LoaderParameters, IResourceLocator)
Loads the asset using an overloaded resource locator. If UseDefaultContent is set to true, and if the asset cannot be found, an attempt to load it from the default content manager will be made.
Declaration Syntax
C#
public T Load<T>(
	string assetName,
	LoaderParameters parameters,
	IResourceLocator locatorOverride
)
Generic Template Parameters
T
Type of resource
Parameters
assetName (String)
Asset name
parameters (LoaderParameters)
Loader parameters
locatorOverride (IResourceLocator)
Resource locator to use
Return Value
Loaded asset, if it exists, otherwise null
Exceptions
Exception Condition
ObjectDisposedException Thrown if the manager has been disposed
ArgumentNullException Thrown if the asset name or locator is null
InvalidCastException Thrown if the asset to load does not match return type
ResourceNotFoundException Thrown if resource could not be located
InvalidOperationException Thrown if no suitable loader registered to the manager
TeslaException Thrown if loader parameters are not valid.

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)