Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractMessageSource.RenderDefaultMessage Method

Renders the default message string. The default message is passed in as specified by the caller and can be rendered into a fully formatted default message shown to the user.

[Visual Basic]
Protected Overridable Sub RenderDefaultMessage( _
   ByVal defaultMessage As String, _
   ByVal args As Object, _
   ByVal culture As CultureInfo _
)
[C#]
protected virtual string RenderDefaultMessage(
   string defaultMessage,
   object[] args,
   CultureInfo culture
);

Parameters

defaultMessage
The default message.
args
The array of agruments that will be filled in for parameter placeholders within the message, or null if none.
culture
The CultureInfo with which the resource is associated.

Return Value

The rendered default message (with resolved arguments)

Remarks

Default implementation passed he String for String.Format resolving any argument placeholders found in them. Subclasses may override this method to plug in custom processing of default messages.

See Also

AbstractMessageSource Class | Spring.Context.Support Namespace