Interface nsIPersistentPropertiesType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • get an enumeration of nsIPropertyElement objects, which are read-only (i.e. setting properties on the element will not make changes back into the source nsIPersistentProperties

    Returns nsISimpleEnumerator

  • Gets a property with a given name.

    Throws

    NS_ERROR_FAILURE if a property with that name doesn't exist.

    Throws

    NS_ERROR_NO_INTERFACE if the found property fails to QI to the given iid.

    Parameters

    • prop: string
    • iid: object
    • result: object

    Returns void

  • shortcut to nsIProperty's get() which retrieves a string value directly (and thus faster)

    Parameters

    • key: string

    Returns string

  • Returns true if the property with the given name exists.

    Parameters

    • prop: string

    Returns boolean

  • load a set of name/value pairs from the input stream names and values should be in UTF8

    Parameters

    • input: nsIInputStream

    Returns void

  • output the values to the stream - results will be in UTF8

    Parameters

    • output: nsIOutputStream
    • header: string

    Returns void

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

    Parameters

    • prop: string
    • value: nsISupports

    Returns void

  • shortcut to nsIProperty's set() which sets a string value directly (and thus faster). If the given property already exists, then the old value will be returned

    Parameters

    • key: string
    • value: string

    Returns string

  • Parameters

    • aMallocSizeOf: MallocSizeOf

    Returns number

  • Undefines a property.

    Throws

    NS_ERROR_FAILURE if a property with that name doesn't already exist.

    Parameters

    • prop: string

    Returns void

Generated using TypeDoc