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::BuildDependencySetA BuildDependencySet object that is stored in the cache, or nullptr 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 nullptr.
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.