ControlCachePolicy.Dependency Property
.NET Framework (current version)
Gets or sets an instance of the CacheDependency class associated with the cached user control output.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Web.Caching.CacheDependencyThe CacheDependency associated with the control. The default is null.
| Exception | Condition |
|---|---|
| HttpException | The user control is not associated with a BasePartialCachingControl and is not cacheable. - or - The Dependency property is set outside of the initialization and rendering stages of the control. |
The Dependency property delegates to the Dependency property of the BasePartialCachingControl control that wraps the user control. When the CacheDependency instance is invalidated, the user control is removed from the cache.
.NET Framework
Available since 2.0
Available since 2.0
Show: