BuildManager::GetCachedBuildDependencySet Method (HttpContext^, String^, Boolean)
Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache, even if the content is not current.
Assembly: System.Web (in System.Web.dll)
public: static BuildDependencySet^ GetCachedBuildDependencySet( HttpContext^ context, String^ virtualPath, bool ensureIsUpToDate )
Parameters
- context
-
Type:
System.Web::HttpContext^
The context of the request.
- virtualPath
-
Type:
System::String^
The virtual path from which to determine the build dependency set.
- ensureIsUpToDate
-
Type:
System::Boolean
true to specify that only a current build dependency set should be returned, or false to indicate that any available build dependency set should be returned, even if it is not current. The default is true.
Return Value
Type: System.Web.Compilation::BuildDependencySet^A BuildDependencySet object that is stored in the cache, or null if the BuildDependencySet object cannot be retrieved from the cache.
If the ensureIsUpToDate parameter value is set to true, the BuildManager::GetCachedBuildDependencySet method overload behaves like the BuildManager::GetCachedBuildDependencySet method overload. Both overloads return a current build dependency set if one exists, otherwise they return null.
However, the BuildManager::GetCachedBuildDependencySet method overload includes the option to return any build dependency set that is available, even an outdated one. If the ensureIsUpToDate parameter value is set to false, the method will return any available build dependency set.
Available since 4.0