rice class : ContainsKey(string) method
Description
Gets a value that indicates whether the specified message name is contained in the messsage dictionary.
Syntax
riceInstance.ContainsKey(string messageName)
Arguments
Class | Name | Description |
string | messageName | Message name. |
Return value
Class | Description |
bool | A value that indicates whether the specified message name is contained in the message dictionary. |
Sample code
//anyRice is a instance of rice type.
bool contain = anyRice.ContainsKey("user-mess001");
Notes
If the message name exist, this method returns true. Otherwise, returns false.
Links for reference
None