# cDioConfig Class

Contains all of the members for getting digital configuration information.

[Visual Basic]

Public Class cDioConfig

Inherits System.Object

[C#]

public class cDioConfig : System.Object

## Class constructor

public cDioConfig (int MccBoard )

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

### Public Methods

The cDioConfig class configuration methods are accessible from the DioConfig property.

The configuration methods call the UL function cbGetConfig() with DIGITALINFO as the main category, and a subcategory that is specific to the method. For example, the BoardConfig.GetDevType() method calls cbGetConfig() with DIGITALINFO and DINUMBITS to retrieve the number of digital bits in the port.

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.DioConfig.GetDevType(devNum, configVal)

[C#]

MccBoard board0;

ErrorInfo status;

MccBoard board0 = new MccBoard (0);

int devNum=1;

int configVal;

Status = Board0.DioConfig.GetDevType(devNum, out configVal);