Share via


CounterSetRegistrarBase Class

Definition

An abstract class that forms the base class for any CounterSetRegistrar type. Any client that needs to register a new type of perf counter category with the PSPerfCountersMgr, should create an instance of CounterSetRegistrarBase's derived non-abstract type. The created instance is then passed to PSPerfCounterMgr's AddCounterSetInstance() method.

public ref class CounterSetRegistrarBase abstract
public abstract class CounterSetRegistrarBase
type CounterSetRegistrarBase = class
Public MustInherit Class CounterSetRegistrarBase
Inheritance
CounterSetRegistrarBase
Derived

Constructors

CounterSetRegistrarBase(CounterSetRegistrarBase)

Copy constructor

CounterSetRegistrarBase(Guid, Guid, CounterSetInstanceType, CounterInfo[], String)

Constructor that creates an instance of CounterSetRegistrarBase derived type based on Provider Id, counterSetId, counterSetInstanceType, a collection with counters information and an optional counterSetName.

Fields

_counterSetInstanceBase

A reference to the encapsulated counter set instance.

Properties

CounterInfoArray

Getter method for array of counters information property

CounterSetId

Getter method for CounterSetId property

CounterSetInstance

Getter method that returns an instance of the CounterSetInstanceBase's derived type

CounterSetInstType

Getter method for CounterSetInstanceType property

CounterSetName

Getter method for CounterSetName property

ProviderId

Getter method for ProviderId property

Methods

CreateCounterSetInstance()

Method that creates an instance of the CounterSetInstanceBase's derived type. This method is invoked by the PSPerfCountersMgr to retrieve the appropriate instance of CounterSet to register with its internal datastructure.

DisposeCounterSetInstance()

Method that disposes the referenced instance of the CounterSetInstanceBase's derived type. This method is invoked by the PSPerfCountersMgr to dispose the appropriate instance of CounterSet from its internal datastructure as part of PSPerfCountersMgr cleanup procedure.

Applies to