Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource.GetMessage(String, CultureInfo) Method

Resolve the message identified by the supplied name.

[Visual Basic]
Public NotOverridable Overloads Sub GetMessage( _
   ByVal name As String, _
   ByVal culture As CultureInfo _
) _
    Implements IMessageSource.GetMessage
public string GetMessage(
   string name,
   CultureInfo culture


The name of the message to resolve.
The CultureInfo that represents the culture for which the resource is localized.

Return Value

The resolved message if the lookup was successful (see above for the return value in the case of an unsuccessful lookup).




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

If the lookup is not successful, implementations are permitted to take one of two actions.

If the lookup is not successful throw NoSuchMessageException

See Also

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