RangeCheck
- Updated2025-10-06
- 1 minute(s) read
Gets or sets whether to validate proper values and method parameters. If you enable this property, NI-DCPower validates the parameter values that you pass to NI-DCPower methods.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public bool RangeCheck { get; set; }
Remarks
true if validating property values and method parameters are enabled; otherwise, false.
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.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The RangeCheck property was accessed after the associated NIDCPower object was disposed. |