Share via


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

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

EventTargetArray(  
   _Out_ HRESULT* hr,  
   size_t items  
);  

Parameters

hr
After this constructor operations, parameter hr indicates whether allocation of the array succeeded or failed. The following table lists the possible values for hr.

S_OK
The operation succeeded.

E_OUTOFMEMORY
Memory couldn't be allocated for the array.

S_FALSE
Parameter items is less than or equal to zero.

items
The number of array elements to allocate.

Remarks

Initializes a new instance of the EventTargetArray class.

EventTargetArray is used to keep an array of event handlers in an EventSource object.

Requirements

Header: event.h

Namespace: Microsoft::WRL::Details

See Also

EventTargetArray Class
Microsoft::WRL::Details Namespace