Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConfigurableResourceLoader.GetResource Method

Returns a IResource that has been mapped to the protocol of the supplied resourceName.

[Visual Basic]
Public NotOverridable Sub GetResource( _
   ByVal resourceName As String _
) _
    Implements IResourceLoader.GetResource
[C#]
public IResource GetResource(
   string resourceName
);

Parameters

resourceName
The name of the resource.

Return Value

A new IResource instance for the supplied resourceName.

Implements

IResourceLoader.GetResource

Exceptions

Exception Type Condition
UriFormatException If a IResourceType mapping does not exist for the supplied resourceName.
Exception In the case of any errors arising from the instantiation of the returned IResource instance.

See Also

ConfigurableResourceLoader Class | Spring.Core.IO Namespace | RegisterResourceHandler