DiagnosticCounter 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DiagnosticCounter是一个抽象类,用作各种 Counter* 类的父类,即EventCounter,PollingCounter和IncrementingEventCounterIncrementingPollingCounter。
public ref class DiagnosticCounter abstract : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public abstract class DiagnosticCounter : IDisposable
public abstract class DiagnosticCounter : IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type DiagnosticCounter = class
interface IDisposable
type DiagnosticCounter = class
interface IDisposable
Public MustInherit Class DiagnosticCounter
Implements IDisposable
- 继承
-
DiagnosticCounter
- 派生
- 属性
- 实现
属性
| 名称 | 说明 |
|---|---|
| DisplayName |
获取或设置计数器的显示名称。 |
| DisplayUnits |
获取或设置计数器的显示单位。 |
| EventSource |
获取此计数器附加到的 EventSource。 |
| Name |
获取此计数器的名称。 |
方法
| 名称 | 说明 |
|---|---|
| AddMetadata(String, String) |
将键值元数据添加到将作为有效负载的一部分包含的计数器。 |
| Dispose() |
从将要报告的集中 EventSource 删除计数器。 |
| Equals(Object) |
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
用作默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| ToString() |
返回一个表示当前对象的字符串。 (继承自 Object) |