BuildManager.AddCompilationDependency Method (String)

.NET Framework (current version)
 

Specifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.

Namespace:   System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public static void AddCompilationDependency(
	string dependency
)

Parameters

dependency
Type: System.String

A string that represents a dependency.

Exception Condition
ArgumentException

The dependency parameter is null or an empty string.

InvalidOperationException

The method was called after the Application_PreStartInit stage of the application.

The method must be called during the Application_PreStartInit stage of the application.

.NET Framework
Available since 4.5
Return to top
Show: