# GetBoardName()

Returns the name of a specified board.

Member of the MccService class.

## Function Prototype

VB .NET

Public Shared Function GetBoardName(ByVal boardNumber As Integer, ByRef boardName As String) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetBoardName(int boardNumber, ref string boardName)

## Parameters

boardNumber

Refers either to the board number associated with a board when it was installed, or GETFIRST or GETNEXT.

boardName

A string variable that contains the board name. Refer to the "Measurement Computing Device IDs" section.

## Returns

- An ErrorInfo object that indicates the status of the operation.
- boardName – return string containing the board name.

## Notes

There are two ways to use this method:

- Pass a board number as the boardNumber argument. The string that is returned describes the board type of the installed board.
- Set boardNumber to GETFIRST or GETNEXT to get a list of all board types that are supported by the library.
- Set boardNumber to GETFIRST to get the first board type in the list of supported boards. Subsequent calls with Board=GETNEXT returns each of the other board types supported by the library. When you reach the end of the list, boardName is set to an empty string. The ulgt04 example program in the installation directory demonstrates how to use this method.