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

返回

父项的创建时间(如果退出);否则为 DateTimeDateTime.MinValue

适用于