共用方式為


InstanceDataCollection(String) 建構函式

定義

警告

This constructor has been deprecated. Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202

警告

This constructor has been deprecated. Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead. https://go.microsoft.com/fwlink/?linkid=14202

警告

This constructor has been deprecated. Use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.

使用指定的效能計數器 (會定義效能執行個體),初始化 InstanceDataCollection 類別的新執行個體。

public:
 InstanceDataCollection(System::String ^ counterName);
[System.Obsolete("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public InstanceDataCollection (string counterName);
[System.Obsolete("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public InstanceDataCollection (string counterName);
[System.Obsolete("This constructor has been deprecated. Use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.")]
public InstanceDataCollection (string counterName);
public InstanceDataCollection (string counterName);
[<System.Obsolete("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Diagnostics.InstanceDataCollection : string -> System.Diagnostics.InstanceDataCollection
[<System.Obsolete("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Diagnostics.InstanceDataCollection : string -> System.Diagnostics.InstanceDataCollection
[<System.Obsolete("This constructor has been deprecated. Use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.")>]
new System.Diagnostics.InstanceDataCollection : string -> System.Diagnostics.InstanceDataCollection
new System.Diagnostics.InstanceDataCollection : string -> System.Diagnostics.InstanceDataCollection
Public Sub New (counterName As String)

參數

counterName
String

計數器的名稱,通常描述了所要計數的數量。

屬性

例外狀況

counterName 參數為 null

適用於