Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectDefinitionDocumentReader.RegisterObjectDefinitions Method

Read object definitions from the given DOM element, and register them with the given object registry.

[Visual Basic]
Public Sub RegisterObjectDefinitions( _
   ByVal doc As XmlDocument, _
   ByVal readerContext As XmlReaderContext _
)
[C#]
void RegisterObjectDefinitions(
   XmlDocument doc,
   XmlReaderContext readerContext
);

Parameters

doc
The DOM element containing object definitions, usually the root (document) element.
readerContext
The current context of the reader. Includes the resource being parsed

Return Value

The number of object definitions that were loaded.

Exceptions

Exception Type Condition
ObjectsException In case of parsing errors.

See Also

IObjectDefinitionDocumentReader Interface | Spring.Objects.Factory.Xml Namespace