Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageSourceAccessor.GetMessage(IMessageSourceResolvable, CultureInfo) Method

Retrieve a mesage using the given IMessageSourceResolvable in the given CultureInfo.

[Visual Basic]
Public Overloads Sub GetMessage( _
   ByVal resolvable As IMessageSourceResolvable, _
   ByVal cultureInfo As CultureInfo _
)
[C#]
public string GetMessage(
   IMessageSourceResolvable resolvable,
   CultureInfo cultureInfo
);

Parameters

resolvable
The IMessageSourceResolvable.
cultureInfo
The CultureInfo to use for lookups.

Return Value

The message

Exceptions

Exception Type Condition
NoSuchMessageException If the message could not be found.

See Also

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