AddProperty method

The AddProperty method adds a property to a property bag.

Syntax

HRESULT AddProperty(
  [in] const wchar_t *pszName,
  [in] const VARIANT *pVar
);

Parameters

pszName

The name of the property that you want to add to the property bag. You should uniquely identify this property so that it does not collide with others. For example, use a name like MyCompanyName-MySetting.

pVar

The VARIANT value to add to the property bag.

Return Value

AddProperty returns an HRESULT value.

Requirements

   
Target Platform Desktop
Header filterpipeline.h
Library filterpipeline.h