Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CounterSetInstanceCounterDataSet Class

CounterSetInstanceCounterDataSet Class

Contains the collection of counter values.

System.Object
  System.Diagnostics.PerformanceData.CounterSetInstanceCounterDataSet

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

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

The CounterSetInstanceCounterDataSet type exposes the following members.

  NameDescription
Public propertyItem[Int32]Accesses a counter value in the collection by using the specified counter identifier.
Public propertyItem[String]Accesses a counter value in the collection by using the specified counter name.
Top

  NameDescription
Public methodDisposeReleases all unmanaged resources used by this object.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize (Overrides Object.Finalize().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The CounterSetInstance.Counters property returns an instance of this class.

NoteNote

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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