PerformanceCounterManager.ICollectData.CollectData Method (Int32, IntPtr, IntPtr, Int32, IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

Performance data collection routine. Called by the PerfCount perf dll.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

[ObsoleteAttribute("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
void ICollectData.CollectData(
	int callIdx,
	IntPtr valueNamePtr,
	IntPtr dataPtr,
	int totalBytes,
	out IntPtr res
)

Parameters

callIdx
Type: System.Int32

The call index.

valueNamePtr
Type: System.IntPtr

A pointer to a Unicode string list with the requested Object identifiers.

dataPtr
Type: System.IntPtr

A pointer to the data buffer.

totalBytes
Type: System.Int32

A pointer to a number of bytes.

res
Type: System.IntPtr

When this method returns, contains a IntPtr with a value of -1.

.NET Framework
Available since 1.1
Return to top
Show: