SystemMonitor::CollectSample method
Samples a value for each counter in the Counters object.
Syntax
Sub CollectSample()
Parameters
This method has no parameters.
Return value
This method does not return a value.
Remarks
Call CollectSample only if ManualUpdate is True and you are sampling counter values from the current activity of the computer do not use this method when sampling from a log file. The graph or report is updated with the new value. Note that some types of graphs need two samples in order to graph the data, for example, the line graph.
To receive notification when the sample has been collected, implement the OnSampleCollected event.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
DLL |
|