RangeCheck Property
- Updated2023-02-21
- 2 minute(s) read
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.
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 Property RangeCheck As Boolean |
C# |
---|
public bool RangeCheck { get; set; } |
Property Value
Type: System..::.Boolean trueTruetruetrue (True in Visual Basic) if validating property values and method parameters is enabled; otherwise, falseFalsefalsefalse (False in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The RangeCheck was accessed after the associated NISwitch.NISwitch object was disposed. |
Remarks
Range checking parameters is very useful for debugging. After you validate your program, you can set this property to falseFalsefalsefalse (False in Visual Basic) to disable range checking and maximize performance.