EventRegistrationToken structure
Represents a reference to a delegate that receives change notifications.
.NET: This type appears as System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken.
Syntax
var eventRegistrationToken = { value : /* Your value */ }
Attributes
- VersionAttribute(NTDDI_WIN8)
Members
The EventRegistrationToken structure has these fields.
| Field | Data type | Description |
|---|---|---|
| Value | value |
Number [JavaScript] | int64 [C++] |
The reference to the delegate. |
Remarks
When building Windows Store apps with the Microsoft .NET Framework, this type is hidden and developers should use the System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken type.
In the event subscription model, a delegate registers to receive change notifications from a specified object such as a collection. The EventRegistrationToken is used to remove the delegate as a subscriber of change notifications when notifications are no longer needed.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
Build date: 2/25/2013
