Activity.Dispose Method

Definition

Overloads

Dispose(Boolean)

When overriden by a derived type, this method releases any allocated resources.

Dispose()

Stops the activity if it is already started and notifies any event listeners. Nothing will happen otherwise.

Dispose(Boolean)

Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs

When overriden by a derived type, this method releases any allocated resources.

C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

false if the method is being called from the finalizer; true if calling from user code.

Applies to

.NET 10 and other versions
Product Versions
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

Dispose()

Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs
Source:
Activity.cs

Stops the activity if it is already started and notifies any event listeners. Nothing will happen otherwise.

C#
public void Dispose();

Implements

Applies to

.NET 10 and other versions
Product Versions
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)