Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource.GetResourceObject(String, CultureInfo) Method

Gets a localized resource object identified by the supplied name.

[Visual Basic]
Public NotOverridable Overloads Sub GetResourceObject( _
   ByVal name As String, _
   ByVal culture As CultureInfo _
) _
    Implements IMessageSource.GetResourceObject
[C#]
public object GetResourceObject(
   string name,
   CultureInfo culture
);

Parameters

name
The name of the resource object to resolve.
culture
The CultureInfo with which the resource is associated.

Return Value

The resolved object, or a null reference (Nothing in Visual Basic) if not found. If the resource name resolves to null, then in .NET 1.1 the return value will be String.Empty whereas in .NET 2.0 it will return null.

Implements

IMessageSource.GetResourceObject

Remarks

Note that the fallback behavior based on CultureInfo seem to have a bug that is fixed by installed .NET 1.1 Service Pack 1.

See Also

AbstractMessageSource Class | Spring.Context.Support Namespace | AbstractMessageSource.GetResourceObject Overload List | GetResourceObject