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

Description

Adds a message that is specified with the message name.

Syntax

riceInstance.AddMessage(string messageName, string messageString)

Arguments

ClassNameDescription
stringmessageNameMessage name.
stringmessageStringMessage string.

Return value

ClassDescription
stringMessage string that is added.

Sample code

//anyRice is a instance of rice type.

string message = anyRice.AddMessage("user-mess001", "User-defined message");

Notes

If the message name already exist, this method throw the UnknownException(ArgumentException).

Links for reference

Copyright © Rice All rights reserved.