Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.GetMessage(String, Object) Method

Resolve the message identified by the supplied name.

[Visual Basic]
Public NotOverridable Overloads Sub GetMessage( _
   ByVal name As String, _
   ParamArray arguments As Object _
) _
    Implements IMessageSource.GetMessage
public string GetMessage(
   string name,
   params object[] arguments


The name of the message to resolve.
The array of arguments that will be filled in for parameters within the message, or a null reference (Nothing in Visual Basic) if there are no parameters within the message. Parameters within a message should be referenced using the same syntax as the format string for the Format method.

Return Value

The resolved message if the lookup was successful.




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