# cExpansionConfig Class

Contains all members for setting and getting expansion board configuration.

[Visual Basic]

Public Class cExpansionConfig

Inherits System.Object

[C#]

public class cExpansionConfig : System.Object

## Class constructor

public cExpansionConfig (int MccBoard )

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

### Public Methods

The cExpansionConfig class configuration methods are accessible from the ExpansionConfig property.

The configuration methods call the UL function cbGetConfig() or cbSetConfig() with EXPANSIONINFO as the main category, and a subcategory that is specific to the method. For example, the BoardConfig.GetNumExps() method calls cbGetConfig() with EXPANSIONINFO and XINUMEXPCHANS to retrieve the number of channels on an expansion board.

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.ExpansionConfig.GetBoardType(devNum, configVal)

[C#]

MccBoard board0;

ErrorInfo status;

MccBoard board0 = new MccBoard (0);

int devNum=1;

int configVal ;

Status = Board0.ExpansionConfig.GetBoardType(devNum, out configVal);