Gets or sets whether to validate proper values and method parameters. If you enable this property, NI-SWITCH validates the parameter values that you pass to NI-SWITCH methods.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public bool RangeCheck { get; set; }

Remarks

Range checking parameters is very useful for debugging. After you validate your program, you can set this property to false to disable range checking and maximize performance.

Returns

true if validating property values and method parameters is enabled; otherwise, false.

Exceptions

TypeDescription
System.ObjectDisposedException

The RangeCheck was accessed after the associated NISwitch object was disposed.