Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertiesObjectDefinitionReader.LoadObjectDefinitions(IResource, String) Method

Load object definitions from the specified properties file.

[Visual Basic]
Public Overloads Sub LoadObjectDefinitions( _
   ByVal resource As IResource, _
   ByVal prefix As String _
)
[C#]
public int LoadObjectDefinitions(
   IResource resource,
   string prefix
);

Parameters

resource
The resource descriptor for the properties file.
prefix
The match or filter for object definition names, e.g. 'objects.'

Return Value

the number of object definitions found

Exceptions

Exception Type Condition
ObjectsException in case of loading or parsing errors

See Also

PropertiesObjectDefinitionReader Class | Spring.Objects.Factory.Support Namespace | PropertiesObjectDefinitionReader.LoadObjectDefinitions Overload List