Click or drag to resize

CacheGetBool Method (String, Double)

Retrieve a boolean value from the cache with the given name, restricting maximum call frequency to the range 2 to 1000 calls per second if required.

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Cache (in ASCOM.Cache.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public bool GetBool(
	string Key,
	double MaximumCallFrequency


Type: SystemString
Name of this item in the cache. The key is case sensitive.
Type: SystemDouble
Maximum number of retrievals per second that are to be allowed for this item. A value of 0.0 will disable throttling. See Dispose for further information.

Return Value

Type: Boolean
The requested boolean value, if present in the cache, or a "NotInCacheException" if there is no item in the cache that has the supplied name.
InvalidValueExceptionWhen Key is null or empty.
InvalidValueExceptionWhen MaximumCallFrequency is not 0.0 and is outside the range 2.0 to 1000.0.
NotInCacheExceptionWhen there is no item in the cache with the supplied key.
See Also