HandleT Class
Visual Studio 2015
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
| Name | Description |
|---|---|
Traits | A synonym for HandleTraits. |
Public Constructors
| Name | Description |
|---|---|
| HandleT::HandleT Constructor | Initializes a new instance of the HandleT class. |
| HandleT::~HandleT Destructor | Deinitializes an instance of the HandleT class. |
Public Methods
| Name | Description |
|---|---|
| HandleT::Attach Method | Associates the specified handle with the current HandleT object. |
| HandleT::Close Method | Closes the current HandleT object. |
| HandleT::Detach Method | Disassociates the current HandleT object from its underlying handle. |
| HandleT::Get Method | Gets the value of the underlying handle. |
| HandleT::IsValid Method | Indicates whether the current HandleT object represents a handle. |
Protected Methods
| Name | Description |
|---|---|
| HandleT::InternalClose Method | Closes the current HandleT object. |
Public Operators
| Name | Description |
|---|---|
| HandleT::operator= Operator | Moves the value of the specified HandleT object to the current HandleT object. |
Protected Data Members
| Name | Description |
|---|---|
| HandleT::handle_ Data Member | Contains the handle that is represented by the HandleT object. |
HandleT
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers
Show: