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

Description

Deletes the specified item.

Syntax

pipeclientInstance.Remove(string itemName)

Arguments

ClassNameDescription
stringitemNameA item name.

Return value

ClassDescription
boolA value that indicates whether it has been deleted.

Sample code

1:

pipe p = new pipe("newchannel");

2:

pipeclient pClient = new pipeclient("newchannel");

3:

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

4:

bool succ = pClient.Remove("item1"); // true.

5:

succ = pClient.Remove("item2"); // false.

Notes

Returns true if the deletion was successful. Otherwise, returns false.

Links for reference

None

Copyright © Rice All rights reserved.