'Declaration Public Shared Sub Dispose(Of T As {Class, IDisposable})( _ ByRef comObject As T _ )
public static void Dispose<T>( ref T comObject ) where T: class, IDisposable
Parameters
- comObject
- Object to dispose.
Type Parameters
- T
- The type of COM interface to dispose.