Compartilhar via


CacheStoreProvider.AddDependent(String, CacheDependency, DateTime) Método

Definição

Adiciona uma entidade dependente para o cache.

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

Parâmetros

key
String

A chave.

dependency
CacheDependency

O item dependente.

utcLastUpdated
DateTime

Retornos

A hora em que a entrada pai foi criada, se ela for encerrada; caso contrário DateTime, DateTime.MinValue.

Aplica-se a