Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BoolList.RemoveItem(String) Method

Removes a key/value pair with a particular key from the BoolList‘s collection.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public void RemoveItem(
    string key
)

#Parameters

Name Type Description
key String

A string representing the key of the key/value pair that will be removed from the BoolList‘s collection.

#Remarks

The following code snippet illustrates use of the RemoveItem method:

BoolList mylist = new BoolList();
mylist["myKey"] = true;
mylist.RemoveItem("myKey");
//mylist.Contains("myKey") == false;

To get all keys from the BoolList‘s collection of key/value pairs, use the BoolList.GetKeys method. To check whether a particular key exists, use the BoolList.Contains method.

See Also