Share via


NativeEventDispatcher Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Coordinates the dispatching of hardware events.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..NativeEventDispatcher
    Microsoft.SPOT. . :: . .EventSink
    Microsoft.SPOT.Hardware. . :: . .Port

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Class NativeEventDispatcher _
    Implements IDisposable
public class NativeEventDispatcher : IDisposable
public ref class NativeEventDispatcher : IDisposable
type NativeEventDispatcher =  
    class
        interface IDisposable
    end
public class NativeEventDispatcher implements IDisposable

The NativeEventDispatcher type exposes the following members.

Constructors

  Name Description
Public method NativeEventDispatcher Initializes a new instance of the NativeEventDispatcher class.

Top

Methods

  Name Description
Public method DisableInterrupt Disables the interrupt for this NativeEventDispatcher object.
Public method Dispose() () () () Releases resources used by this NativeEventDispatcher object.
Protected method Dispose(Boolean) Releases resources used by this NativeEventDispatcher object.
Public method EnableInterrupt Enables the interrupt for this NativeEventDispatcher object.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Performs cleanup operations. (Overrides Object. . :: . .Finalize() () () ().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event OnInterrupt Adds or removes callback methods for native events.

Top

Fields

  Name Description
Protected field m_callbacks The event handler for this NativeEventDispatcher object (a mulitcast combinable delegate).
Protected field m_disposed Set to true if this NativeEventDispatcher object has been disposed, or false if not.
Protected field m_threadSpawn The event handler for this NativeEventDispatcher object (a mulitcast combinable delegate).

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Hardware Namespace