method removeListener

void removeListener(object collectionListener);

Argumente

Zurückgegebener Wert

This method removes a listener from the liveDictionary object.
function DictionaryListener()
{
	this.onDictionaryModified = onDictionaryModifyFunc;
}

function onDictionaryModifyFunc(dictionary, operation, key, context)
{
    alert(modified);
    //implementation of onDictionaryModifyFunc
}

//main
function main()
{
    var liveDictObj = shell.serviceManager.basics.liveDictionary;
    var dictListenerObj = new DictionaryListener();
    liveDictObj.addListener(dictListenerObj, null);

    liveDictObj.setValueForKey(217, "two");
    
    liveDictObj.removeListener(dictListenerObj);
}