Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertiesObjectDefinitionReader.RegisterObjectDefinitions(ResourceSet, String) Method

Register object definitions contained in a ResourceSet.

[Visual Basic]
Public Overloads Sub RegisterObjectDefinitions( _
   ByVal rs As ResourceSet, _
   ByVal prefix As String _
)
[C#]
public int RegisterObjectDefinitions(
   ResourceSet rs,
   string prefix
);

Parameters

rs
The ResourceSet containing object definitions.
prefix
The match or filter for object definition names, e.g. 'objects.'

Return Value

The number of object definitions registered.

Remarks

Similar syntax as for an IDictionary. This method is useful to enable standard .NET internationalization support.

Exceptions

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

See Also

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