Share via


HandleT::HandleT Constructor

 

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::HandleT Constructor.

Initializes a new instance of the HandleT class.

Syntax

explicit HandleT(  
   typename HandleTraits::Type h =   
      HandleTraits::GetInvalidValue()  
);  
  
HandleT(  
   _Inout_ HandleT&& h  
);  

Parameters

h
A handle.

Remarks

The first constructor initializes a HandleT object that is not a valid handle to an object. The second constructor creates a new HandleT object from parameter h.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

HandleT Class