Navigation:  OLE Automation > Application > Methods >

SpaceObServer.Application.GetSizeDistributionValue

Previous pageReturn to chapter overviewNext page

Description

Provides you the allocated space and number of files for one of the "Size Distribution" bar charts.
 

Syntax

GetSizeDistributionValue (FolderID : <Integer>, Index : <Shortint>, OccupiedSpace : <OLEVariant>, NumFiles : <OLEVariant>)
 

Parameters

FolderID

The ID referring to the directory for which  the "Age of Files" values should be retrierved.
You get this ID from the functions RootFolderID, FirstChildID or NextSiblingID.

Index

The index of the "Age of Files" bar to export.
The first index is always 0. The last index is always (SizeDistributionCount-1)

OccupiedSpace

(Out Parameter) The space occupied by all files of this "Size Distribution" interval.

NumFiles

(Out Parameter) The number of files of this "Size Distribution" interval.

 
Example

RootDirecotyID = SOS.RootFolderID
Index = 0
Do While Index<SOS.SizeDistributionCount                                                                                        
SOS.GetSizeDistributionValue RootDirecotyID, Index, AllocatedSpace, NumberOfFiles
 ...
 Index = Index+1        
Loop

Loops over all "Size Distribution" intervals of the currently activated root directory and queries the allocate space and number of files for each single interval.