method keyExists

bool keyExists(string key);

Argumente

Zurückgegebener Wert

This method determines if a key exists in the key-value store.

The following example will check for the existence of a key.
var factory = shell.serviceManager.localStorage.factory;
if (factory)
{
    var keyValueStore = factory.createKeyDatabaseForIdentity("johndoe", "aol.mail");
    if (keyValueStore)
    {
        if (keyValueStore.keyExists("spelling.ignoreHtml"))
        {
        }
    }
}