method removeValuesForKeys

void removeValuesForKeys(array keyArray);

Argumente

Zurückgegebener Wert

This method removes all values in the dictionary whose keys match the keys specified in keyArray.
var dictObj = shell.serviceManager.basics.dictionary;
dictObj.setValueForKey("John", "FirstName");
dictObj.setValueForKey("Doe", "LastName");
dictObj.setValueForKey("35", "Age");

var keyArray = shell.serviceManager.basics.array;
keyArray.addValue("LastName");
keyArray.addValue("Age");

dictObj.removeValuesForKeys(keyArray);