Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  rice  >  ContainsKey(string)
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

ClassNameDescription
stringmessageNameMessage name.

Return value

ClassDescription
boolA 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

Copyright © Rice All rights reserved.