CacheStoreProvider::Add Method (String^, Object^, CacheInsertOptions^)

 

Adds the specified item to the cache with options.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public:
virtual Object^ Add(
	String^ key,
	Object^ item,
	CacheInsertOptions^ options
) abstract

Parameters

key
Type: System::String^

The key used to reference the item.

item
Type: System::Object^

The item to be added to the cache.

options
Type: System.Web.Caching::CacheInsertOptions^

The cache options.

Return Value

Type: System::Object^

The object that was added to the cache.

.NET Framework
Available since 4.7
Return to top
Show: