Export (0) Print
Expand All
Cut
Run
Expand Minimize

Clean Method

Visual Studio .NET 2003

Deletes all compiler-generated support files for marked projects.

[Visual Basic .NET]
Public Sub Clean( _
   Optional ByVal WaitForCleanToFinish As Boolean = False _
) 
[Visual Basic 6]
Sub Clean( _
   Optional ByVal WaitForCleanToFinish As Boolean = False _
) 
[C++]
HRESULT __stdcall Clean(
   VARIANT_BOOL WaitForCleanToFinish
);
[C#]
public void Clean(
   bool WaitForCleanToFinish
);
[JScript .NET]
public function Clean(
   WaitForCleanToFinish : Boolean
)

Parameters

WaitForBuildToFinish
Optional. Determines whether Build retains control til the build operation is complete. Default value is False.

Remarks

When a project is built, numerous support files can be generated by the compiler, such as, .idl files, .obj files, and so forth. The Clean method deletes all such files from all projects that are marked for build, returning the project to a state similar to never having been built.

To mark a project to be built, use the ShouldBuild Property.

See Also

Add Method (SolutionConfigurations Collection) | SolutionConfiguration Object

Applies To: SolutionBuild Object

Show:
© 2015 Microsoft