The requested page is not available for the requested platform. You are viewing the content for Default platform.

BoolList.GetKeys() Method

Returns a list of key/value pair keys from the BoolList's collection.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public IEnumerable<string> GetKeys()
Public Function GetKeys As IEnumerable(Of String)

Returns

Type Description
IEnumerable<String>

An IEnumerable<String> object representing a list of key/value pair keys from the BoolList's collection.

Remarks

The GetKeys method exposes an enumerator allowing you to iterate over the BoolList's keys via the foreach statement. The following code snippet illustrates this.

//...
BoolList mylist = new BoolList();
//...
foreach(string key in mylist.GetKeys()) {
    // process "key"
}

The keys returned by the GetKeys method can be used as parameters in the BoolList.RemoveItem and BoolList.SetItemValue methods.

If you need to check whether the BoolList's collection of key/value pairs contains a specific key, use the BoolList.Contains method. To get a value associated with a particular key, use the BoolList.Item indexer property.

See Also