# BoardConfig.GetNetConnectionCode() method

Returns the code used to connect with a device over a network connection.

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

## Function Prototype

VB .NET

Public Function GetNetConnectionCode(ByRef configVal As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetNetConnectionCode(System.Int32 configVal)

## Parameters

configVal

Returns the connection code.

## Returns

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