Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPropertyBag2::Write Method

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

Syntax


HRESULT Write(
    ULONG cProperties,
    PROPBAG2 *pPropBag,
    VARIANT *pvarValue
);

Parameters

cProperties
[in] The number of properties to save. This argument specifies the number of elements in the arrays at pPropBag and pvarValue.
pPropBag
[in] 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] 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.

Return Value

Returns S_OK if the property bag successfully saves all of the properties, or E_FAIL if one or more of the properties cannot be saved.

See Also

Community Additions

Show:
© 2014 Microsoft