auto_gcroot Class

Automatic resource management (like auto_ptr Class) which can be used to embed a virtual handle into a native type.

Syntax

template<typename _element_type>
class auto_gcroot;

Parameters

_element_type
The managed type to be embedded.

Requirements

Header file <msclr\auto_gcroot.h>

Namespace msclr

See Also

auto_gcroot
auto_gcroot Members
How to: Declare Handles in Native Types
auto_handle Class