Breyta

Deila með


BuildManager.GetCachedBuildDependencySet Method

Definition

Returns a build dependency set from the ASP.NET cache.

Overloads

GetCachedBuildDependencySet(HttpContext, String)

Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.

GetCachedBuildDependencySet(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.

GetCachedBuildDependencySet(HttpContext, String)

Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.

public:
 static System::Web::Compilation::BuildDependencySet ^ GetCachedBuildDependencySet(System::Web::HttpContext ^ context, System::String ^ virtualPath);
public static System.Web.Compilation.BuildDependencySet GetCachedBuildDependencySet (System.Web.HttpContext context, string virtualPath);
static member GetCachedBuildDependencySet : System.Web.HttpContext * string -> System.Web.Compilation.BuildDependencySet
Public Shared Function GetCachedBuildDependencySet (context As HttpContext, virtualPath As String) As BuildDependencySet

Parameters

context
HttpContext

The context of the request.

virtualPath
String

The virtual path from which to determine the build dependency set.

Returns

A BuildDependencySet object that is stored in the cache, or null if the BuildDependencySet object cannot be retrieved from the cache.

See also

Applies to

GetCachedBuildDependencySet(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.

public:
 static System::Web::Compilation::BuildDependencySet ^ GetCachedBuildDependencySet(System::Web::HttpContext ^ context, System::String ^ virtualPath, bool ensureIsUpToDate);
public static System.Web.Compilation.BuildDependencySet GetCachedBuildDependencySet (System.Web.HttpContext context, string virtualPath, bool ensureIsUpToDate);
static member GetCachedBuildDependencySet : System.Web.HttpContext * string * bool -> System.Web.Compilation.BuildDependencySet
Public Shared Function GetCachedBuildDependencySet (context As HttpContext, virtualPath As String, ensureIsUpToDate As Boolean) As BuildDependencySet

Parameters

context
HttpContext

The context of the request.

virtualPath
String

The virtual path from which to determine the build dependency set.

ensureIsUpToDate
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.

Returns

A BuildDependencySet object that is stored in the cache, or null if the BuildDependencySet object cannot be retrieved from the cache.

Remarks

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.

Applies to