Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlObjectDefinitionReader.RegisterObjectDefinitions Method

Register the object definitions contained in the given DOM document.

[Visual Basic]
Public Sub RegisterObjectDefinitions( _
   ByVal doc As XmlDocument, _
   ByVal resource As IResource _
)
[C#]
public int RegisterObjectDefinitions(
   XmlDocument doc,
   IResource resource
);

Parameters

doc
The DOM document.
resource
The original resource from where the XmlDocument was read.

Return Value

The number of object definitions that were registered.

Exceptions

Exception Type Condition
ObjectsException In case of parsing errors.

See Also

XmlObjectDefinitionReader Class | Spring.Objects.Factory.Xml Namespace