Compartilhar via


counterAttribute Element

Use the counterAttribute element to specify how the counter data is retrieved from the counter and how it is displayed in a consumer application. Specify a counterAttribute element for each attribute that you want to apply to the counter.

Usage

<counterAttribute
  name = "String"
/>

Attributes

Attribute Type Required Description

name

String

Yes

Attribute to apply to the counter.

The possible values are:

reference

Retrieve the value of the counter by reference as opposed to by value.

noDisplay

Do not display the counter value. Typically, you use this attribute if the counter's data is used as input for calculating another counter's value.

noDigitGrouping

Consumer or monitoring applications should not use digit separators when displaying counter values.

displayAsHex

Consumer or monitoring applications should display the counter value as a hexadecimal, instead of the default integer value.

displayAsReal

Consumer or monitoring applications should display the counter value as a real number, instead of the default integer value.

Child Elements

None.

Parent Elements

Element Description

counterAttributes

Groups one or more counter attributes.

Element Information

Can be empty Yes

Send comments about this topic to Microsoft

Build date: 10/15/2009