CounterSet Class

CounterSet Class

 

Defines a set of logical counters.

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

System.Object
  System.Diagnostics.PerformanceData.CounterSet

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public class CounterSet : IDisposable

NameDescription
System_CAPS_pubmethodCounterSet(Guid, Guid, CounterSetInstanceType)

Initializes a new instance of the CounterSet class.

NameDescription
System_CAPS_pubmethodAddCounter(Int32, CounterType)

Adds a counter to the counter set by using the specified counter identifier and type.

System_CAPS_pubmethodAddCounter(Int32, CounterType, String)

Adds a counter to the counter set by using the specified counter identifier and type and a display name for the counter.

System_CAPS_pubmethodCreateCounterSetInstance(String)

Creates an instance of the counter set.

System_CAPS_pubmethodDispose()

Releases all unmanaged resources used by this object.

System_CAPS_protmethodDispose(Boolean)

Releases all unmanaged resources used by this object and optionally release the managed resources.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Frees resources before the object is reclaimed by garbage collection.(Overrides Object.Finalize().)

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_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

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

Call the Dispose method when you are finished to remove your provider's registration and to release all managed and unmanaged resources.

.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:
© 2016 Microsoft