共用方式為


CacheStoreProvider.AddDependent(String, CacheDependency, DateTime) 方法

定義

將相依實體加入至快取。

public:
 abstract bool AddDependent(System::String ^ key, System::Web::Caching::CacheDependency ^ dependency, [Runtime::InteropServices::Out] DateTime % utcLastUpdated);
public abstract bool AddDependent (string key, System.Web.Caching.CacheDependency dependency, out DateTime utcLastUpdated);
abstract member AddDependent : string * System.Web.Caching.CacheDependency * DateTime -> bool
Public MustOverride Function AddDependent (key As String, dependency As CacheDependency, ByRef utcLastUpdated As DateTime) As Boolean

參數

key
String

索引鍵。

dependency
CacheDependency

相依項目。

utcLastUpdated
DateTime

傳回

如果父專案結束,則為建立父專案的時間;否則 DateTime為 DateTime.MinValue

適用於