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
| Class | Name | Description |
| string | itemName | An item name. |
Return value
| Class | Description |
| bool | A 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


