Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventRegistrationToken structure

Applies to Windows and Windows Phone

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

[Version(0x06020000)]

Members

The EventRegistrationToken structure has these fields.

FieldData typeDescription
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

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

 

 

Show:
© 2015 Microsoft