WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIPropertyBag2

IID:625cfd1e-da1e-4417-9ee9-dbc8e0b3fd79
Inherits From:nsIPropertyBag

This interface is implemented by the following components:


Methods

nsIVariant get ( AString prop ) ACString getPropertyAsACString ( AString prop ) AString getPropertyAsAString ( AString prop ) AUTF8String getPropertyAsAUTF8String ( AString prop ) PRBool getPropertyAsBool ( AString prop ) double getPropertyAsDouble ( AString prop ) PRInt32 getPropertyAsInt32 ( AString prop ) PRInt64 getPropertyAsInt64 ( AString prop ) void getPropertyAsInterface ( AString prop , nsIIDRef iid , out nsQIResult* result ) PRUint32 getPropertyAsUint32 ( AString prop ) PRUint64 getPropertyAsUint64 ( AString prop ) PRBool hasKey ( AString prop )

nsIVariant get ( AString prop )

This method returns null if the value does not exist, or exists but is null.

Arguments:
prop

ACString getPropertyAsACString ( AString prop )

Arguments:
prop

AString getPropertyAsAString ( AString prop )

Arguments:
prop

AUTF8String getPropertyAsAUTF8String ( AString prop )

Arguments:
prop

PRBool getPropertyAsBool ( AString prop )

Arguments:
prop

double getPropertyAsDouble ( AString prop )

Arguments:
prop

PRInt32 getPropertyAsInt32 ( AString prop )

Arguments:
prop

PRInt64 getPropertyAsInt64 ( AString prop )

Arguments:
prop

void getPropertyAsInterface ( AString prop , nsIIDRef iid , out nsQIResult* result )

This method returns null if the value exists, but is null.

Arguments:
prop
iid
result

PRUint32 getPropertyAsUint32 ( AString prop )

Arguments:
prop

PRUint64 getPropertyAsUint64 ( AString prop )

Arguments:
prop

PRBool hasKey ( AString prop )

Check for the existence of a key.

Arguments:
prop

References

This interface is returned from the following methods:

nsIContentPrefService.getPrefs

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com