Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  rice  >  GetMessage(string)
rice class : GetMessage(string) method

Description

Gets a message that is specified with the message name.

Syntax

riceInstance.GetMessage(string messageName)

Arguments

ClassNameDescription
stringmessageNameMessage name.

Return value

ClassDescription
stringMessage 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).

Links for reference

Copyright © Rice All rights reserved.