Share via


IDSFPropertyBag::Clear Method

The Clear method removes all name-value pairs from the property bag.

Syntax

HRESULT Clear();

Parameters

This method has no parameters.

Return Value

Clear returns S_OK.

Examples

The following VBScript code example shows how to clear the contents of a DSFPropertyBag object.

Dim PropBag 
Set PropBag = CreateObject("DSF.DSFPropertyBag")
PropBag.Write "TestPassed", TRUE
PropBag.Clear

Requirements

Header

DSFif.h

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010