PerformanceCounterManager.ICollectData.CollectData Method

Definition

Caution

PerformanceCounterManager has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.

Caution

This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202

Caution

This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. https://go.microsoft.com/fwlink/?linkid=14202

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

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

C#
[System.Obsolete("PerformanceCounterManager has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.")]
void ICollectData.CollectData(int callIdx, IntPtr valueNamePtr, IntPtr dataPtr, int totalBytes, out IntPtr res);
C#
void ICollectData.CollectData(int callIdx, IntPtr valueNamePtr, IntPtr dataPtr, int totalBytes, out IntPtr res);
C#
[System.Obsolete("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);
C#
[System.Obsolete("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
void ICollectData.CollectData(int callIdx, IntPtr valueNamePtr, IntPtr dataPtr, int totalBytes, out IntPtr res);

Parameters

callIdx
Int32

The call index.

valueNamePtr
IntPtr

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

dataPtr
IntPtr

A pointer to the data buffer.

totalBytes
Int32

A pointer to a number of bytes.

res
IntPtr

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

Implements

Attributes

Applies to

Produkt Versioner (Föråldrad)
.NET (8 (package-provided), 9 (package-provided), 10 (package-provided))
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0 (package-provided))
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9, 10)