Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageSourceAccessor.GetMessage(String, Object) Method

Retrieve the message for the given code and the default CultureInfo.

[Visual Basic]
Public Overloads Sub GetMessage( _
   ByVal code As String, _
   ParamArray args As Object _
)
[C#]
public string GetMessage(
   string code,
   params object[] args
);

Parameters

code
The code of the message.
args
The arguments for the message, or a null reference (Nothing in Visual Basic) if none.

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