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


public value struct EventRegistrationToken

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:
© 2014 Microsoft