The typed CachedObjectIdT class serves as an identifier for a cached
object in a NamedCache collection where the type of the object is known.
Inheritance Hierarchy
Soss.ClientCachedObjectId
Soss.ClientCachedObjectIdT
Namespace: Soss.Client
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax
Type Parameters
- T
- The Type of the object stored in StateServer with this CachedObjectIdT.
The CachedObjectIdT type exposes the following members.
Properties
Name | Description | |
---|---|---|
Key |
The StateServerKey representing the key of a cached object. Read-only.
(Inherited from CachedObjectId.) | |
Value |
Fetches the object corresponding to this CachedObjectIdT from its
NamedCache, casts the returned object to the Type T,
and returns the result.
|
Methods
Name | Description | |
---|---|---|
Equals(Object) |
Determines whether two CachedObjectId instances are equal.
(Inherited from CachedObjectId.) | |
Equals(CachedObjectId) |
Determines whether two CachedObjectId instances are equal.
(Inherited from CachedObjectId.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode method.
(Inherited from CachedObjectId.) | |
GetStringKey |
Retrieves the original (unhashed) string used as a key to a StateServer
object.
(Inherited from CachedObjectId.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a string representing this key.
(Inherited from CachedObjectId.) |
Remarks
Instances of CachedObjectIdT are created by the QueryKeysT method within the NamedCache for returning results corresponding to objects whose type is prescribed by the query. The Value property may be used for returning the object corresponding to the CachedObjectIdT as a typed object.
Since CachedObjectIdT is a subclass of CachedObjectId, you may use a CachedObjectIdT as an input to any NamedCache method requiring a CachedObjectId.
See Also