Compartilhar via


OnDisposeActionDisposable Class

Definition

A utility class that provides an implementation of IDisposable that executes a client-supplied action upon disposal.

public ref class OnDisposeActionDisposable sealed : IDisposable
public sealed class OnDisposeActionDisposable : IDisposable
type OnDisposeActionDisposable = class
    interface IDisposable
Public NotInheritable Class OnDisposeActionDisposable
Implements IDisposable
Inheritance
OnDisposeActionDisposable
Implements

Constructors

OnDisposeActionDisposable(Action)

Initializes a new instance of an IDisposable object that invokes onDispose on disposal.

Methods

Dispose()

Applies to