Safely dispose a referencem if not null, and set it to null after dispose.
            
            
            シンタックス
            
            
            
            
            '宣言
 
Public Shared Sub Dispose(Of  As {Class, System.IDisposable})( _
   ByRef  As  _
) 
             
        
            
            public static void Dispose<>( 
   ref  
)
where T: class, System.IDisposable
             
        
             
        
            パラメータ
- comObject
 
- Object to dispose.
 
            型パラメータ
- T
 
- The type of COM interface to dispose.
 
             
            
            
            
            
            
            
            
            
            
            
            
            参照