# cCtrConfig Class

Contains all members for setting and getting counter configuration.

[Visual Basic]

Public Class cCtrConfig

Inherits System.Object

[C#]

public class cCtrConfig : System.Object

## Class constructor

public cCtrConfig (int MccBoard )

Creates a new instance of the cCtrConfig class with a reference to MccBoard object passed to it.

### Public Methods

The cCtrConfig class configuration methods are accessible from the CtrConfig property.

The configuration methods call the UL function cbGetConfig() COUNTERINFO as main category and CICTRTYPE as a sub-category that is specific to the method. For example, the BoardConfig.GetCtrType() method calls cbGetConfig() with COUNTERINFO and CICTRTYPE to retrieve the type of counter.

Refer to the Universal Library Function Reference for details on all UL for .NET configuration methods.

## Example usage

[Visual Basic]

Dim Status As ErrorInfo

Dim Board0 As MccBoard

Dim configVal As Integer

Dim devNum As Integer = 1

Board0 = New MccBoard(0)

Status = Board0.CtrConfig.GetCtrType(devNum, configVal)

[C#]

MccBoard board0;

ErrorInfo status;

MccBoard board0 = new MccBoard (0);

int devNum=1;

int configVal ;

Status = Board0.CtrConfig.GetCtrType(devNum, out configVal);