Visit Mozilla.org

nsIProperties

From MDC

« XPCOM API Reference

[edit] Summary

The nsIProperties interface provides methods to access a map of named XPCOM object values.

#include "nsIProperties.h"

[scriptable, uuid=(78650582-4e93-4b60-8e85-26ebd3eb14ca)]
interface nsIProperties : nsISupports { ... };

[edit] Methods

get
Gets the XPCOM object associated with a particular name.
set
Sets the XPCOM object associated with a particular name.
has
Tests if a property exists.
undefine
Removes a property.
getKeys
Returns an array of property names.

[edit] History

This interface was frozen for Mozilla 1.2. See bug 162114 for details.