rice class : GetMessage(string) method
Description
Gets a message that is specified with the message name.
Syntax
riceInstance.GetMessage(string messageName)
Arguments
Class | Name | Description |
string | messageName | Message name. |
Return value
Class | Description |
string | Message string. |
Sample code
//anyRice is a instance of rice type.
string message = anyRice.GetMessage("user-mess001");
Notes
If the message name do not exist, this method throw the UnknownException(KeyNotFoundException).