SafeBuffer(Boolean) コンストラクター

定義

SafeBuffer クラスの新しいインスタンスを作成し、バッファー ハンドルを安全に解放するかどうかを指定します。

protected:
 SafeBuffer(bool ownsHandle);
protected SafeBuffer (bool ownsHandle);
new System.Runtime.InteropServices.SafeBuffer : bool -> System.Runtime.InteropServices.SafeBuffer
Protected Sub New (ownsHandle As Boolean)

パラメーター

ownsHandle
Boolean

終了処理中にハンドルを確実にリリースする場合は true。信頼性の高いリリースを実行しない場合は false (お勧めしません)。

適用対象