Implemented by
- @mozilla.org/persistent-properties;1
- @mozilla.org/file/directory_service;1
- @mozilla.org/properties;1
- @mozilla.org/image/container;1
[scriptable, uuid(78650582-4e93-4b60-8e85-26ebd3eb14ca)]
interface nsIProperties : nsISupports
Methods
Gets a property with a given name. @return NS_ERROR_FAILURE if a property with that name doesn't exist. @return NS_ERROR_NO_INTERFACE if the found property fails to QI to the given iid.
void
get(in string prop, in nsIIDRef iid, [iid_is(iid), retval] out nsQIResult result)
Returns an array of the keys.
void
getKeys(out PRUint32 count, [array, size_is(count), retval] out string keys)
Returns true if the property with the given name exists.
boolean
has(in string prop)
Sets a property with a given name to a given value.
void
set(in string prop, in nsISupports value)
Undefines a property. @return NS_ERROR_FAILURE if a property with that name doesn't already exist.
void
undefine(in string prop)
Compare to: