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.
Assembly: System.Web (in System.Web.dll)
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
Available since 4.5
Show: