nsISupports
Last changed in Gecko 1.2 Implemented by: @mozilla.org/file/directory_service;1. To get an instance, use:
var properties = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties);
void get(in string prop, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result); |
void getKeys(out PRUint32 count, [array, size_is(count), retval] out string keys); |
boolean has(in string prop); |
void set(in string prop, in nsISupports value); |
void undefine(in string prop); |
Gets the XPCOM object associated with a particular name.
void get( in string prop, in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result );
propiidresultNS_ERROR_FAILURENS_ERROR_NO_INTERFACEReturns an array of property names.
nsMemory.h defines the macro NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY, which can be used to free aKeys when it is no longer needed.
void getKeys( out PRUint32 count, [array, size_is(count), retval] out string keys );
countkeysTests if a property exists.
boolean has( in string prop );
proptrue if the property exists, false if the property does not exist.
Sets the XPCOM object associated with a particular name.
void set( in string prop, in nsISupports value );
propvalueUndefines a property.
void undefine( in string prop );
propThis interface was frozen for Gecko 1.2. See bug 162114 for details. From Gecko 2.0 interfaces are no longer frozen.