HandleT Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at HandleT Class.

Represents a handle to an object.

template <  
   typename HandleTraits  
>  
class HandleT;  

Parameters

HandleTraits
An instance of the HandleTraits stucture that defines common characteristics of a handle.

Public Typedefs

NameDescription
TraitsA synonym for HandleTraits.

Public Constructors

NameDescription
HandleT::HandleT ConstructorInitializes a new instance of the HandleT class.
HandleT::~HandleT DestructorDeinitializes an instance of the HandleT class.

Public Methods

NameDescription
HandleT::Attach MethodAssociates the specified handle with the current HandleT object.
HandleT::Close MethodCloses the current HandleT object.
HandleT::Detach MethodDisassociates the current HandleT object from its underlying handle.
HandleT::Get MethodGets the value of the underlying handle.
HandleT::IsValid MethodIndicates whether the current HandleT object represents a handle.

Protected Methods

NameDescription
HandleT::InternalClose MethodCloses the current HandleT object.

Public Operators

NameDescription
HandleT::operator= OperatorMoves the value of the specified HandleT object to the current HandleT object.

Protected Data Members

NameDescription
HandleT::handle_ Data MemberContains the handle that is represented by the HandleT object.

HandleT

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

Microsoft::WRL::Wrappers Namespace

Show: