Udostępnij za pośrednictwem


'Using' resource variable type can not be array type

A Using statement specifies an array variable for a resource.

The Array class does not implement the IDisposable interface, so the Using block cannot call the Dispose method on an array resource.

Error ID: BC36012

To correct this error

  • Use a different type of system resource in the Using block.

See Also

Tasks

How to: Dispose of a System Resource

Concepts

Overview of Arrays in Visual Basic

Reference

Using Statement (Visual Basic)