CounterData Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Contains the raw data for a counter.

Namespace:   System.Diagnostics.PerformanceData
Assembly:  System.Core (in System.Core.dll)

System.Object
  System.Diagnostics.PerformanceData.CounterData

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public sealed class CounterData

NameDescription
System_CAPS_pubpropertyRawValue

Sets or gets the raw counter data.

System_CAPS_pubpropertyValue

Sets or gets the counter data.

NameDescription
System_CAPS_pubmethodDecrement()

Decrements the counter value by 1.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIncrement()

Increments the counter value by 1.

System_CAPS_pubmethodIncrementBy(Int64)

Increments the counter value by the specified amount.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The CounterSetInstanceCounterDataSet.Item property returns an instance of this class.

This class provides thread-safe methods for reading and writing counter data.

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: