Export (0) Print
Expand All

IDataManager::ResourcePolicy property

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
);

HRESULT get_ResourcePolicy(
   ResourcePolicy *pPolicy
);

Property value

An action to take when one of the following disk resource limits is exceeded:

For possible actions, see the ResourcePolicy enumeration. The default is plaDeleteLargest.

Error codes

Returns S_OK if successful.

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Pla.h

DLL

Pla.dll

See also

IDataManager
IDataManager::FolderActions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft