EventRegistrationToken EventRegistrationToken EventRegistrationToken EventRegistrationToken Struct

Definition

A token that is returned when an event handler is added to a Windows Runtime event. The token is used to remove the event handler from the event at a later time.

public value class EventRegistrationToken
public struct EventRegistrationToken
type EventRegistrationToken = struct
Public Structure EventRegistrationToken
Inheritance
EventRegistrationTokenEventRegistrationTokenEventRegistrationTokenEventRegistrationToken

Remarks

Use the EventRegistrationToken structure only if you use native Windows Runtime techniques to add and remove event handlers for Windows Runtime events. If you use the syntax that is provided by the C# or Visual Basic languages to add and remove event handlers, EventRegistrationToken is an implementation detail handled by the compilers.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Returns a value that indicates whether the current object is equal to the specified object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this instance.

Operators

Equality(EventRegistrationToken, EventRegistrationToken) Equality(EventRegistrationToken, EventRegistrationToken) Equality(EventRegistrationToken, EventRegistrationToken) Equality(EventRegistrationToken, EventRegistrationToken)

Indicates whether two EventRegistrationToken instances are equal.

Inequality(EventRegistrationToken, EventRegistrationToken) Inequality(EventRegistrationToken, EventRegistrationToken) Inequality(EventRegistrationToken, EventRegistrationToken) Inequality(EventRegistrationToken, EventRegistrationToken)

Indicates whether two EventRegistrationToken instances are not equal.

Applies to