Udostępnij za pośrednictwem


TracedEvent Class

Definition

Event wrapper that keeps the history of whether the event has fired before.

public ref class TracedEvent
[Windows::Foundation::Metadata::WebHostHidden]
class TracedEvent
public class TracedEvent
type TracedEvent = class
Public Class TracedEvent
Inheritance
TracedEvent

Constructors

TracedEvent()

Properties

HasFired

Gets a value indicating whether the event has fired before. Use AttachIfNotFired(Action, Boolean) instead of using this property if you want to attach an event handler only if the event has not fired before.

Methods

Attach(Action)

Attach the event handler.

AttachIfNotFired(Action, Boolean)

Attach the event handler only if the event has not fired before. You may specify invokeIfFired = true if you want to invoke the handler right away if the event has fired before.

Fire()

Fire the event.

Remove(Action)

Remove the event handler.

Applies to