IDataManager::put_ResourcePolicy method (pla.h)

Retrieves or sets the action to take when one of the disk resource limits is exceeded.

This property is read/write.

Syntax

HRESULT put_ResourcePolicy(
  ResourcePolicy Policy
);

Parameters

Policy

Return value

None

Remarks

The folders are deleted based on the resource policy until the disk resource condition is satisfied. For example, if the maximum size is 7 MB and the current size is 10 MB, PLA will delete folders until the current size is 7 MB or less. If the first folder to be deleted is 3 MB, PLA will delete that folder and then stop deleting folders because the current size will be equal to the maximum size. If the first folder to be deleted is 9 MB, PLA will delete that folder and then stop deleting folders because the current size will be 1 MB, which will also satisfy the condition.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header pla.h
DLL Pla.dll

See also

IDataManager

IDataManager::FolderActions