CacheGetInt(String) Method

Immediatley retrieve an integer value from the cache with the given name with no throttling.

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Cache (in ASCOM.Cache.dll) Version: 7.1.3+4851.c5da65c2b
C#
public int GetInt(
	string Key
)

Parameters

Key  String
Name of this item in the cache. The key is case sensitive.

Return Value

Int32
The requested integer value, if present in the cache, or a "NotInCacheException" if there is no item in the cache that has the supplied name.

Exceptions

InvalidValueExceptionWhen Key is null or empty.
NotInCacheExceptionWhen there is no item in the cache with the supplied key.

See Also