次の方法で共有


auto_gcroot クラス

ネイティブ型に仮想ハンドルを埋め込むために使用できる自動リソース管理 (auto_ptr Class)。

template<typename _element_type>
class auto_gcroot;

パラメータ

  • _element_type
    埋め込まれるマネージ型。

必要条件

ヘッダー ファイル <msclr\auto_gcroot.h>

名前空間 msclr

参照

概念

auto_gcroot

auto_gcroot Members

方法 : ネイティブ型のハンドルを宣言する

auto_handle クラス