Open sandboxFocus

Method GetMessage

GetMessage(string)

Gets a message declared by the LocalizedTextProvider or by the rest of the responsibility chain, if applicable.

Declaration
public virtual string GetMessage(string messageId)
Parameters
Type Name Description
string messageId

The identifier of the message.

Returns
Type Description
string

The message represented by messageId. Returning null is not allowed.

Remarks

An implementation must call the base implementation if it does not provide the requested message. The base implementation is responsible for invoking the next provider in the chain of responsibility.