Struct xpcom::interfaces::nsIWritablePropertyBag [] [src]

#[repr(C)]
pub struct nsIWritablePropertyBag { /* fields omitted */ }

interface nsIWritablePropertyBag : nsIPropertyBag

Methods

impl nsIWritablePropertyBag
[src]

[src]

Cast this nsIWritablePropertyBag to one of its base interfaces.

impl nsIWritablePropertyBag
[src]

[src]

/**
     * Set a property with the given name to the given value.  If
     * a property already exists with the given name, it is
     * overwritten.
     */

void setProperty (in AString name, in nsIVariant value);

[src]

/**
     * Delete a property with the given name.
     * @throws NS_ERROR_FAILURE if a property with that name doesn't
     * exist.
     */

void deleteProperty (in AString name);

Methods from Deref<Target = nsIPropertyBag>

[src]

Cast this nsIPropertyBag to one of its base interfaces.

[src]

/**
     * Get a nsISimpleEnumerator whose elements are nsIProperty objects.
     */

readonly attribute nsISimpleEnumerator enumerator;

[src]

/**
     * Get a property value for the given name.
     * @throws NS_ERROR_FAILURE if a property with that name doesn't
     * exist.
     */

nsIVariant getProperty (in AString name);

Trait Implementations

impl XpCom for nsIWritablePropertyBag
[src]

IID: nsIID = nsID(2533115505, 61108, 18467, [148, 33, 229, 15, 183, 10, 211, 83])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIWritablePropertyBag
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWritablePropertyBag
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.