Effect.Dispose Method

Definition

Overloads

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases the unmanaged resources used by the Effect and optionally releases the managed resources.

Dispose()

Source:
Effect.cs
Source:
Effect.cs
Source:
Effect.cs

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose();

Implements

Applies to

.NET 9 (package-provided) and Windows Desktop 9
Product Versions
.NET 9 (package-provided)
Windows Desktop 9

Dispose(Boolean)

Source:
Effect.cs
Source:
Effect.cs
Source:
Effect.cs

Releases the unmanaged resources used by the Effect and optionally releases the managed resources.

C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

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

Applies to

.NET 9 (package-provided) and Windows Desktop 9
Product Versions
.NET 9 (package-provided)
Windows Desktop 9