共用方式為


auto_handle Class

Automatic resource management which can be used to embed a virtual handle into a managed type.

template<typename _element_type>
ref class auto_handle;

Parameters

  • _element_type
    The managed type to be embedded.

Requirements

Header file <msclr\auto_handle.h>

Namespace msclr

See Also

Reference

auto_handle

auto_gcroot Class

Other Resources

auto_handle Members