Cache
- Updated2025-10-06
- 1 minute(s) read
Gets or sets whether to cache the value of properties.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public bool Cache { get; set; }
Remarks
true if caching is enabled; otherwise, false. The default value is true.
If you set this property to true, NI-DCPower tracks the current NI-DCPower instrument settings and avoids sending redundant commands to the instrument. NI-DCPower might always cache or never cache particular properties, regardless of the setting of this property.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The Cache property was accessed after the associated NIDCPower object was disposed. |