Upravit

Sdílet prostřednictvím


CacheStoreProvider.Add(String, Object, CacheInsertOptions) Method

Definition

Adds the specified item to the cache with options.

public:
 abstract System::Object ^ Add(System::String ^ key, System::Object ^ item, System::Web::Caching::CacheInsertOptions ^ options);
public abstract object Add (string key, object item, System.Web.Caching.CacheInsertOptions options);
abstract member Add : string * obj * System.Web.Caching.CacheInsertOptions -> obj
Public MustOverride Function Add (key As String, item As Object, options As CacheInsertOptions) As Object

Parameters

key
String

The key used to reference the item.

item
Object

The item to be added to the cache.

options
CacheInsertOptions

The cache options.

Returns

The object that was added to the cache.

Applies to