Click or drag to resize

CacheGetBool Method (String)

Immediatley retrieve a boolean value from the cache with the given name with no throttling.

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

Parameters

Key
Type: SystemString
Name of this item in the cache. The key is case sensitive.

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.
Exceptions
ExceptionCondition
InvalidValueExceptionWhen Key is null or empty.
NotInCacheExceptionWhen there is no item in the cache with the supplied key.
See Also