PerformanceCounterManager 类

此类支持 .NET 基础结构,但不适合在代码中直接使用。

注意:此类现在已过时。

为系统使用性能计数器时加载的 performance.dll 准备性能数据。

**命名空间:**System.Diagnostics
**程序集:**System(在 system.dll 中)

语法

声明
<ComVisibleAttribute(True)> _
<GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A")> _
<ObsoleteAttribute("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202")> _
Public NotInheritable Class PerformanceCounterManager
    Implements ICollectData
用法
Dim instance As PerformanceCounterManager
[ComVisibleAttribute(true)] 
[GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A")] 
[ObsoleteAttribute("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public sealed class PerformanceCounterManager : ICollectData
[ComVisibleAttribute(true)] 
[GuidAttribute(L"82840BE1-D273-11D2-B94A-00600893B17A")] 
[ObsoleteAttribute(L"This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public ref class PerformanceCounterManager sealed : ICollectData
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A") */ 
/** @attribute ObsoleteAttribute("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202") */ 
public final class PerformanceCounterManager implements ICollectData
ComVisibleAttribute(true) 
GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A") 
ObsoleteAttribute("This class has been deprecated.  Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead.  https://go.microsoft.com/fwlink/?linkid=14202") 
public final class PerformanceCounterManager implements ICollectData

继承层次结构

System.Object
  System.Diagnostics.PerformanceCounterManager

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:1.0、1.1
在 2.0 中过时(编译器警告)

请参见

参考

PerformanceCounterManager 成员
System.Diagnostics 命名空间