Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource.GetDefaultMessage Method

Return a fallback default message for the given code, if any.

[Visual Basic]
Protected Overridable Sub GetDefaultMessage( _
   ByVal code As String _
protected virtual string GetDefaultMessage(
   string code


The code to lookup up, such as 'calculator.noRateSet'.

Return Value

The default message to use, or null if none.


Default is to return the code itself if "UseCodeAsDefaultMessage" is activated, or return no fallback else. In case of no fallback, the caller will usually receive a NoSuchMessageException from GetMessage

See Also

AbstractMessageSource Class | Spring.Context.Support Namespace