EventRegistrationToken Estrutura
Definição
Um token retornado quando um manipulador de eventos é adicionado a um evento do Windows Runtime.A token that is returned when an event handler is added to a Windows Runtime event. O token é usado para remover o manipulador de eventos do evento posteriormente.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
- Herança
Comentários
Use a EventRegistrationToken estrutura somente se você usar técnicas de Windows Runtime nativa para adicionar e remover manipuladores de eventos para eventos de Windows Runtime.Use the EventRegistrationToken structure only if you use native Windows Runtime techniques to add and remove event handlers for Windows Runtime events. Se você usar a sintaxe fornecida pelas linguagens C# ou Visual Basic para adicionar e remover manipuladores de eventos, EventRegistrationToken o será um detalhe de implementação tratado pelos compiladores.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.
Métodos
| Equals(Object) |
Retorna um valor que indica se o objeto atual é igual ao objeto especificado.Returns a value that indicates whether the current object is equal to the specified object. |
| GetHashCode() |
Retorna o código hash para a instância.Returns the hash code for this instance. |
Operadores
| Equality(EventRegistrationToken, EventRegistrationToken) |
Indica se duas instâncias EventRegistrationToken são iguais.Indicates whether two EventRegistrationToken instances are equal. |
| Inequality(EventRegistrationToken, EventRegistrationToken) |
Indica se duas instâncias EventRegistrationToken não são iguais.Indicates whether two EventRegistrationToken instances are not equal. |