Using Statement

Syntax

  • Using a = New DisposableClass [, b = ...]
    ...
    End Using

  • Using a = GetDisposable(...) [, b = ...]
    ...
    End Using

See examples under Disposable objects

Basic concept of IDisposable