Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlObjectDefinitionReader.LoadObjectDefinitions(IResource) Method

Load object definitions from the supplied XML resource.

[Visual Basic]
Public Overrides Overloads Sub LoadObjectDefinitions( _
   ByVal resource As IResource _
) _
    Implements IObjectDefinitionReader.LoadObjectDefinitions
[C#]
public override int LoadObjectDefinitions(
   IResource resource
);

Parameters

resource
The XML resource for the object definitions that are to be loaded.

Return Value

The number of object definitions that were loaded.

Implements

IObjectDefinitionReader.LoadObjectDefinitions

Exceptions

Exception Type Condition
ObjectsException In the case of loading or parsing errors.

See Also

XmlObjectDefinitionReader Class | Spring.Objects.Factory.Xml Namespace | XmlObjectDefinitionReader.LoadObjectDefinitions Overload List