CounterSetInstance 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.

Creates an instance of the logical counters defined in the CounterSet class.

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

System.Object
  System.Diagnostics.PerformanceData.CounterSetInstance

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

NameDescription
System_CAPS_pubpropertyCounters

Retrieves the collection of counter data for the counter set instance.

NameDescription
System_CAPS_pubmethodDispose()

Releases all unmanaged resources used by this object.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations.(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_pubmethodToString()

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

The CounterSet.CreateCounterSetInstance method returns an instance of this class.

.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: