MetricCollection MembersC# API

The MetricCollection type exposes the following members.
Constructors

  NameDescription
Public methodMetricCollection 
Initializes a new instance of the MetricCollection class.
Public methodMetricCollection(IEnumerable Metric )
Initializes a new instance of the MetricCollection class, containing the specified metrics.
Back to Top
Methods

  NameDescription
Public methodAdd(String, Int32)
Adds a metric value to this collection.
Public methodAdd(String, Int32, Boolean)
Adds a metric value to this collection, specifying whether the metric passed or failed.
Public methodAddMany
Adds a collection of metrics to this collection.
Public methodClear
Removes all metrics from this MetricCollection.
Public methodContains
Determines whether the specified metric is contained in this MetricCollection.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromString
Initializes an instance of the MetricCollection class, from the specified text.
Public methodGet
Retrieves a metric from this collection.
Public methodGetEnumerator
Returns an enumerator that iterates over the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current MetricCollection.
(Overrides Object ToString .)
Back to Top
Properties

  NameDescription
Public propertyCount
Gets the number of metrics in the collection.
Back to Top
See Also