Tesla Graphics Engine Documentation (January 2012)
Load<(Of <(<'T>)>)> Method (assetName)
TeslaTesla.ContentContentManagerLoad<(Of <<'(T>)>>)(String)
Loads the asset. 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
)
Generic Template Parameters
T
Type of resource
Parameters
assetName (String)
Asset name
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 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)