NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

SerialNumber Property

  • Updated2023-02-21
  • 2 minute(s) read
SerialNumber Property
Gets the serial number for the switch controlled by NI-SWITCH.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Visual Basic (Declaration)
Public ReadOnly Property SerialNumber As String
C#
public string SerialNumber { get; }

Property Value

Type: System..::.String
Specifies a String that indicates the serial number for the switch controlled by the NI-SWITCH driver.

Exceptions

ExceptionCondition
ObjectDisposedException The SerialNumber was accessed after the associated NISwitch.NISwitch object was disposed.

Remarks

If the device does not return a serial number, NI-SWITCH returns the Invalid Attribute error.

See Also

Log in to get a better experience