Compartilhar via


ProjectCollection.Dispose Method

Definition

Releases both managed and unmanaged resources. Called when a host no longer needs the project collection.

Overloads

Dispose(Boolean)

Following standard framework guideline dispose pattern. Shut down logging service if the project collection owns one, in order to shut down the logger thread and loggers.

Dispose()

Called when a host is completely done with the project collection.

Dispose(Boolean)

Source:
ProjectCollection.cs

Following standard framework guideline dispose pattern. Shut down logging service if the project collection owns one, in order to shut down the logger thread and loggers.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources..

Remarks

Follows the garbage disposal guidelines of .NET.

Applies to

Dispose()

Source:
ProjectCollection.cs

Called when a host is completely done with the project collection.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

In the MSBuild versions that were delivered with .NET Framework 4.5 and Visual Studio 12.0, you must call UnloadProject() before the ProjectCollection goes out of scope."

Applies to