Skip to main content
.NET 6.0+

BoolList.SetItemValue(String, Boolean) Method

Assigns a new value to a particular key from the BoolList‘s collection of key/value pairs.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public void SetItemValue(
    string key,
    bool value
)

Parameters

Name Type Description
key String

A string representing the key from the BoolList‘s collection of key/value pairs, to which a new value will be assigned.

value Boolean

A Boolean value to be assigned to the specified key.

Remarks

If a key/value pair with the specified key does not exist, it is created.

The following code snippet illustrates use of the SetItemValue method:

BoolList mylist = new BoolList();
mylist.SetItemValue("myKey", true); 
//myValue == true;

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetItemValue(String, Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also