NumberOfRequest

Returns the number of requests that the thread has serviced - Read Only.

Syntax

[value=] object.NumberOfRequest

The NumberOfRequest property syntax has the following parts:

Part Description
object A valid WebCacheWorkerThread object
value A Long value.

Data Type

Long

Example

'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