INamedPropertyBag::WritePropertyNPB method

Saves a property to the named property bag.

Syntax


HRESULT WritePropertyNPB(
  [in] PCWSTR      pszBagName,
  [in] PCWSTR      pszPropName,
  [in] PROPVARIANT *pVar
);

Parameters

pszBagName [in]

Type: PCWSTR

A pointer to a string that contains the name of the property bag.

pszPropName [in]

Type: PCWSTR

A pointer to a string that contains the name of the property to write.

pVar [in]

Type: PROPVARIANT*

A pointer to a VARIANT that holds the new property value.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shlobj.h

DLL

Shdocvw.dll

 

 

Show: