Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.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
[C#]
public string GetMessage(
   string name,
   CultureInfo culture
);

Parameters

name
The name of the message to resolve.
culture
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).

Implements

IMessageSource.GetMessage

Exceptions

Exception Type Condition
NoSuchMessageException If no message could be resolved.
ArgumentNullException If the supplied name is a null reference (Nothing in Visual Basic).

See Also

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