Home Notices Documents Classes Download Others Rice Cooker
Classes  >  pipeclient  >  Contains(string)
pipeclient class : Contains(string) method

Description

Gets a value that indicates whether the specified item name exists in the channel.

Syntax

pipeclientInstance.Contains(string itemName)

Arguments

ClassNameDescription
stringitemNameAn item name.

Return value

ClassDescription
boolA value that indicates whether the specified item name exists.

Sample code

1:

pipe p = new pipe("newchannel");

2:

pipeclient pClient = new pipeclient("newchannel");

3:

pClient.Set("item1", "item1_value");

4:

bool exist = pClient.Contains("item1"); // The exist is true.

5:

exist = pClient.Contains("item2"); // The exist is false.

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.