# BoardConfig.GetDeviceId() method

Returns the name that identifies the instance of a device.

Member of the cBoardConfig class. Accessible from the MccBoard.BoardConfig property.

## Function Prototype

VB .NET

Public Function GetDeviceId(ByRef configVal As String, ByRef maxLen As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetDeviceId(out string configVal, ref int maxLen)

## Parameters

configVal

Returns a string containing the name that identifies the device.

maxLen

Specifies the maximum number of bytes to read, and returns the number of bytes that were actually read.

## Returns

- An ErrorInfo object that indicates the status of the operation.