rice class : SetMessage(string,string) method

Description

Overwrites a message that is specified with the message name.

Syntax

riceInstance.SetMessage(string messageName, string messageString)

Arguments

ClassNameDescription
stringmessageNameMessage name.
stringmessageStringMessage string.

Return value

ClassDescription
stringMessage string that is overwritten.

Sample code

//anyRice is a instance of rice type.

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

Notes

If the message name already exist, this method overwrites its message, and returns new message string.

If the message name do not exist, this method adds and returns its message.

Links for reference

Copyright © Rice All rights reserved.