共用方式為


CacheStoreProvider.Insert(String, Object, CacheInsertOptions) 方法

定義

將物件和相依性插入快取中。

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

參數

key
String

用來參考物件的索引鍵。

item
Object

要插入快取中的項目。

options
CacheInsertOptions

快取選項。

適用於