nsIProperties

IID:78650582-4e93-4b60-8e85-26ebd3eb14ca
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void get ( char* prop , nsIIDRef iid , retval nsQIResult* result ) void getKeys ( out PRUint32 count , retval arrayof char* keys ) PRBool has ( char* prop ) void set ( char* prop , nsISupports value ) void undefine ( char* prop )

void get ( char* prop , nsIIDRef iid , retval nsQIResult* result )

Gets a property with a given name.

Arguments:
prop
iid
result
Returns:
NS_ERROR_NO_INTERFACE if the found property fails to QI to the given iid.

void getKeys ( out PRUint32 count , retval arrayof char* keys )

Returns an array of the keys.

Arguments:
count
keys

PRBool has ( char* prop )

Returns true if the property with the given name exists.

Arguments:
prop

void set ( char* prop , nsISupports value )

Sets a property with a given name to a given value.

Arguments:
prop
value

void undefine ( char* prop )

Undefines a property.

Arguments:
prop
Returns:
NS_ERROR_FAILURE if a property with that name doesn't already exist.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
April 5, 2005, 3:13 am neil dot stansbury at redbacksystems dot com
The properties are described in:

http://lxr.mozilla.org/mozilla/source/xpcom/io/nsDirectoryServiceDefs.h
http://lxr.mozilla.org/mozilla/source/xpcom/io/nsAppDirectoryServiceDefs.h

Copyright © 1999 - 2005 XULPlanet.com