Bitmap for UWP
Dispose<T> メソッド (DXUtil)

C1.UWP.DX アセンブリ > C1.Util.DX 名前空間 > DXUtil クラス : Dispose<T> メソッド
The type of COM interface to dispose.
Object to dispose.
Safely dispose a referencem if not null, and set it to null after dispose.
シンタックス
'宣言
 
Public Shared Sub Dispose(Of T As {Class, System.IDisposable})( _
   ByRef comObject As T _
) 
public static void Dispose<T>( 
   ref T comObject
)
where T: class, System.IDisposable

パラメータ

comObject
Object to dispose.

型パラメータ

T
The type of COM interface to dispose.
解説
The reference will be set to null after dispose.
参照

DXUtil クラス
DXUtil メンバ