Class EventObject

    Definition

    Namespace:
    Tizen.Core
    Assembly:
    Tizen.Core.dll

    Represents an event object used for broadcasting the event.

    public class EventObject : IDisposable
    Inheritance
    object
    EventObject
    Implements
    System.IDisposable

    Constructors

    View Source

    EventObject(int, object)

    Constructor for creating a new event object with specified ID and data.

    Declaration
    public EventObject(int id, object data)
    Parameters
    Type Name Description
    int id

    The ID.

    object data

    The data object.

    Examples
    int id = 0;
    string message = "Test event";
    var eventObject = new EventObject(id++, message);
    Exceptions
    Type Condition
    System.OutOfMemoryException

    Thrown when out of memory.

    System.InvalidOperationException

    Thrown when failed because of an invalid operation.

    Properties

    View Source

    Data

    Gets the Data of the event object.

    Declaration
    public object Data { get; }
    Property Value
    Type Description
    object
    View Source

    Id

    Gets the ID of the event object.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Dispose()

    Release any unmanaged resources used by this object.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Release any unmanaged resources used by this object.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    ~EventObject()

    Finalizes an instance of the EventObject class.

    Declaration
    protected ~EventObject()

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX