Freigeben über


Write method

Causes one or more properties to be saved into the property bag.

Syntax

HRESULT retVal = object.Write(cProperties, pPropBag, pvarValue);

Parameters

  • cProperties [in]
    Type: unsigned long

    The number of properties to save. This argument specifies the number of elements in the arrays at pPropBag and pvarValue.

  • pPropBag [in]
    Type: PROPBAG2

    The address of an array of PROPBAG2 structures that specify the properties saved. The pstrName member of these structures must be filled in before this method is called. The dwHint member of these structures is optional. There must be at least cProperties elements in this array. This argument cannot be NULL.

  • pvarValue [in]
    Type: VARIANT

    The address of an array of VARIANT structures that contain the property values to save. There must be at least cProperties elements in this array. This argument cannot be NULL.

See also

Reference

PROPBAG2

PROPBAG2_TYPE