Redigera

Dela via


CounterSetInstanceCounterDataSet.Item[] Property

Definition

Accesses a counter value in the collection.

Overloads

Item[Int32]

Accesses a counter value in the collection by using the specified counter identifier.

Item[String]

Accesses a counter value in the collection by using the specified counter name.

Item[Int32]

Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs

Accesses a counter value in the collection by using the specified counter identifier.

public:
 property System::Diagnostics::PerformanceData::CounterData ^ default[int] { System::Diagnostics::PerformanceData::CounterData ^ get(int counterId); };
public System.Diagnostics.PerformanceData.CounterData this[int counterId] { get; }
member this.Item(int) : System.Diagnostics.PerformanceData.CounterData
Default Public ReadOnly Property Item(counterId As Integer) As CounterData

Parameters

counterId
Int32

Identifier of the counter. This is the identifier you used when you added the counter to the counter set.

Property Value

The counter data.

Remarks

Implemented as an indexer in C#.

Applies to

Item[String]

Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs
Source:
CounterSetInstanceCounterDataSet.cs

Accesses a counter value in the collection by using the specified counter name.

public:
 property System::Diagnostics::PerformanceData::CounterData ^ default[System::String ^] { System::Diagnostics::PerformanceData::CounterData ^ get(System::String ^ counterName); };
public System.Diagnostics.PerformanceData.CounterData this[string counterName] { get; }
member this.Item(string) : System.Diagnostics.PerformanceData.CounterData
Default Public ReadOnly Property Item(counterName As String) As CounterData

Parameters

counterName
String

Name of the counter. This is the name that you used when you added the counter to the counter set.

Property Value

The counter data.

Remarks

Implemented as an indexer in C#.

To use this overload, you must use the CounterSet.AddCounter(Int32, CounterType, String) method to add the counter to the counter set.

Applies to