IResourceLoader.GetResource Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IResourceLoader.GetResource Method

Return an IResource handle for the specified resource.

[Visual Basic]
Public Sub GetResource( _
   ByVal location As String _
IResource GetResource(
   string location


The resource location.

Return Value

An appropriate IResource handle.


The handle should always be a reusable resource descriptor; this allows one to make repeated calls to the underlying InputStream.

Note    An IResource handle does not imply an existing resource; you need to check the value of an IResource's Exists property to determine conclusively whether or not the resource actually exists.

See Also

IResourceLoader Interface | Spring.Core.IO Namespace | IResource | Exists | IApplicationContext