NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

Cache Property

  • Updated2023-02-21
  • 2 minute(s) read
Cache Property
Gets or sets whether to cache the value of properties.

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 Cache As Boolean
C#
public bool Cache { get; set; }

Property Value

Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) if caching is enabled; otherwise, falseFalsefalsefalse (False in Visual Basic). The default value is trueTruetruetrue (True in Visual Basic).

Exceptions

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

Remarks

If you set this property to trueTruetruetrue (True in Visual Basic), NI-SWITCH tracks the current NI-SWITCH device settings and avoids sending redundant commands to the device. NI-SWITCH can always cache or never cache particular properties, regardless of the setting of this property.

See Also

Log in to get a better experience