Rediger

Del via


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
EventRegistrationToken

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)

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

GetHashCode()

Returns the hash code for this instance.

Operators

Equality(EventRegistrationToken, EventRegistrationToken)

Indicates whether two EventRegistrationToken instances are equal.

Inequality(EventRegistrationToken, EventRegistrationToken)

Indicates whether two EventRegistrationToken instances are not equal.

Applies to