description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: EventTargetArray Class |
EventTargetArray Class |
10/03/2018 |
reference |
|
|
e3cadb7c-2160-4cbb-a2f8-c28733d1e96d |
Supports the WRL infrastructure and is not intended to be used directly from your code.
class EventTargetArray :
public Microsoft::WRL::RuntimeClass<
Microsoft::WRL::RuntimeClassFlags<ClassicCom>,
IUnknown
>;
Represents an array of event handlers.
The event handlers that are associated with an EventSource object are stored in a protected EventTargetArray
data member.
Name | Description |
---|---|
EventTargetArray::EventTargetArray | Initializes a new instance of the EventTargetArray class. |
EventTargetArray::~EventTargetArray | Deinitializes the current EventTargetArray class. |
Name | Description |
---|---|
EventTargetArray::AddTail | Appends the specified event handler to the end of the internal array of event handlers. |
EventTargetArray::Begin | Gets the address of the first element in the internal array of event handlers. |
EventTargetArray::End | Gets the address of the last element in the internal array of event handlers. |
EventTargetArray::Length | Gets the current number of elements in the internal array of event handlers. |
EventTargetArray
Header: event.h
Namespace: Microsoft::WRL::Details
Supports the WRL infrastructure and is not intended to be used directly from your code.
~EventTargetArray();
Deinitializes the current EventTargetArray
class.
Supports the WRL infrastructure and is not intended to be used directly from your code.
void AddTail(
_In_ IUnknown* element
);
element
Pointer to the event handler to append.
Appends the specified event handler to the end of the internal array of event handlers.
AddTail()
is intended to be used internally by only the EventSource
class.
Supports the WRL infrastructure and is not intended to be used directly from your code.
ComPtr<IUnknown>* Begin();
The address of the first element in the internal array of event handlers.
Gets the address of the first element in the internal array of event handlers.
Supports the WRL infrastructure and is not intended to be used directly from your code.
ComPtr<IUnknown>* End();
The address of the last element in the internal array of event handlers.
Gets the address of the last element in the internal array of event handlers.
Supports the WRL infrastructure and is not intended to be used directly from your code.
EventTargetArray(
_Out_ HRESULT* hr,
size_t items
);
hr
After this constructor operations, parameter hr indicates whether allocation of the array succeeded or failed. The following list shows 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.
Initializes a new instance of the EventTargetArray
class.
EventTargetArray
is used to keep an array of event handlers in an EventSource
object.
Supports the WRL infrastructure and is not intended to be used directly from your code.
size_t Length();
The current number of elements in the internal array of event handlers.
Gets the current number of elements in the internal array of event handlers.