IITPropList::SetPersist(PROPID,BOOL) method (infotech.h)

Sets the persistence state on or off for a given property.

Syntax

HRESULT SetPersist(
  [in] PROPID PropID,
  [in] BOOL   fPersist
);

Parameters

[in] PropID

ID of the property to set.

[in] fPersist

Persistence state. If TRUE, the persistence state is on; if FALSE, the state is off.

Return value

This method can return one of these values.

Return code Description
S_OK
The state was successfully set.
E_NOTEXIST
The requested property does not exist.

Remarks

By default, properties are created with a persistence state of TRUE.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITPropList