CounterSet CounterSet CounterSet CounterSet Class

Definición

Define un conjunto de contadores lógicos.Defines a set of logical counters.

public ref class CounterSet : IDisposable
public class CounterSet : IDisposable
type CounterSet = class
    interface IDisposable
Public Class CounterSet
Implements IDisposable
Herencia
CounterSetCounterSetCounterSetCounterSet
Implementaciones

Ejemplos

Para obtener un ejemplo, consulte System.Diagnostics.PerformanceData.For an example, see System.Diagnostics.PerformanceData.

Comentarios

Llame al Dispose método cuando haya terminado de quitar el registro del proveedor y de liberar todos los recursos administrados y no administrados.Call the Dispose method when you are finished to remove your provider's registration and to release all managed and unmanaged resources.

Constructores

CounterSet(Guid, Guid, CounterSetInstanceType) CounterSet(Guid, Guid, CounterSetInstanceType) CounterSet(Guid, Guid, CounterSetInstanceType) CounterSet(Guid, Guid, CounterSetInstanceType)

Inicializa una nueva instancia de la clase CounterSet.Initializes a new instance of the CounterSet class.

Métodos

AddCounter(Int32, CounterType) AddCounter(Int32, CounterType) AddCounter(Int32, CounterType) AddCounter(Int32, CounterType)

Agrega un contador al conjunto de contadores utilizando el identificador y el tipo de contador especificados.Adds a counter to the counter set by using the specified counter identifier and type.

AddCounter(Int32, CounterType, String) AddCounter(Int32, CounterType, String) AddCounter(Int32, CounterType, String) AddCounter(Int32, CounterType, String)

Agrega un contador al conjunto de contadores utilizando el identificador, el tipo y el nombre para mostrar del contador especificados.Adds a counter to the counter set by using the specified counter identifier and type and a display name for the counter.

CreateCounterSetInstance(String) CreateCounterSetInstance(String) CreateCounterSetInstance(String) CreateCounterSetInstance(String)

Crea una instancia del conjunto de contadores.Creates an instance of the counter set.

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos no administrados que utiliza este objeto.Releases all unmanaged resources used by this object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera todos los recursos no administrados usados por este objeto y, de forma opcional, libera los recursos administrados.Releases all unmanaged resources used by this object and optionally release the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Libera los recursos antes de que el objeto sea reclamado por la recolección de elementos no utilizados.Frees resources before the object is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a