Spring.Core Send comments on this topic.
GetMessage(IMessageSourceResolvable,CultureInfo) Method
See Also 
Spring.Context Namespace > IMessageSource Interface > GetMessage Method : GetMessage(IMessageSourceResolvable,CultureInfo) Method


resolvable
The value object storing those attributes that are required to properly resolve a message.
culture
The CultureInfo that represents the culture for which the resource is localized.
Resolve the message using all of the attributes contained within the supplied IMessageSourceResolvable argument.

Syntax

Visual Basic (Declaration) 
Overloads Overridable Function GetMessage( _
   ByVal resolvable As IMessageSourceResolvable, _
   ByVal culture As CultureInfo _
) As String
Visual Basic (Usage)Copy Code
Dim instance As IMessageSource
Dim resolvable As IMessageSourceResolvable
Dim culture As CultureInfo
Dim value As String
 
value = instance.GetMessage(resolvable, culture)
C# 
virtual string GetMessage( 
   IMessageSourceResolvable resolvable,
   CultureInfo culture
)

Parameters

resolvable
The value object storing those attributes that are required to properly resolve a message.
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).

Exceptions

ExceptionDescription
NoSuchMessageException If the message could not be resolved.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also