初始化 PerformanceCounterValue 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.LoadTesting
程序集: Microsoft.VisualStudio.QualityTools.LoadTestFramework(在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)
语法
声明
Public Sub New ( _
machineName As String, _
categoryName As String, _
counterName As String, _
instanceName As String, _
value As Single _
)
public PerformanceCounterValue(
string machineName,
string categoryName,
string counterName,
string instanceName,
float value
)
public:
PerformanceCounterValue(
String^ machineName,
String^ categoryName,
String^ counterName,
String^ instanceName,
float value
)
new :
machineName:string *
categoryName:string *
counterName:string *
instanceName:string *
value:float32 -> PerformanceCounterValue
public function PerformanceCounterValue(
machineName : String,
categoryName : String,
counterName : String,
instanceName : String,
value : float
)
参数
- machineName
类型:System.String
从中收集性能计数器值的计算机的名称。
- categoryName
类型:System.String
性能计数器的类别。
- counterName
类型:System.String
性能计数器的名称。
- instanceName
类型:System.String
性能计数器实例的名称。
- value
类型:System.Single
性能计数器的采样值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。