EventRegistrationTokenTable(T) Methods

EventRegistrationTokenTable<T> Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The EventRegistrationTokenTable<T> type exposes the following members.

  NameDescription
Public method AddEventHandler Adds the specified event handler to the table and to the invocation list, and returns a token that can be used to remove the event handler.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetOrCreateEventRegistrationTokenTable Returns the specified event registration token table, if it is not null; otherwise, returns a new event registration token table.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveEventHandler(T) Removes the specified event handler delegate from the table and the invocation list.
Public method RemoveEventHandler(EventRegistrationToken) Removes the event handler that is associated with the specified token from the table and the invocation list.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2017 Microsoft