Retrieves the specified item from the Cache object.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public virtual Object Get(
	string key,
	string providerName,
	DSReadOption dsReadOption
)
Visual Basic
Public Overridable Function Get ( 
	key As String,
	providerName As String,
	dsReadOption As DSReadOption
) As Object
Visual C++
public:
virtual Object^ Get(
	String^ key, 
	String^ providerName, 
	DSReadOption dsReadOption
)

Parameters

key
Type: System..::..String
The identifier for the cache item to retrieve.
providerName
Type: System..::..String
A specific name for the data source
dsReadOption
Type: Alachisoft.NCache.Web.Caching..::..DSReadOption
Options regarding reading from data source

Return Value

Type: Object
The retrieved cache item, or a null reference (Nothing in Visual Basic) if the key is not found.

See Also