Returns the average number of milliseconds per request - Read Only.
[value=] object.AveragePerRequest
The AveragePerRequest property syntax has the following parts:
Part | Description |
---|---|
object | A valid WebCacheWorkerThread object |
value | An Integer value. |
Integer
'This example prints out several properties
'for all of the workerthreads in the workerthreads
'collection. The sample adds the following properties to a
'standard vb listView control called lstThreads.
'ThreadId,AveragePerRequest,and NumberofRequest.
Dim aItem As ListItem
Dim aThread As WebCacheWorkerThread
Dim aThreads As New WebCacheWorkerThreads
Dim nSize As Integer
Dim nIndex As Integer
nSize = aThreads.Count
For nIndex = 0 To nSize - 1
Set aThread = aThreads.Item(nIndex)
Set aItem = lstThreads.ListItems.Add(, , CStr(aThread.ThreadID))
aItem.SubItems(1) = CStr(aThread.AveragePerRequest)
aItem.SubItems(2) = CStr(aThread.NumberOfRequest)
Next nIndex