Class EventObject

Definition

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

Represents an event object used for broadcasting the event.

C#
Copy
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
C#
Copy
public EventObject(int id, object data)
Parameters
Type Name Description
int id

The ID.

object data

The data object.

Examples
Copy
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
C#
Copy
public object Data { get; }
Property Value
Type Description
object
View Source

Id

Gets the ID of the event object.

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

Methods

View Source

Dispose()

Release any unmanaged resources used by this object.

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(bool)

Release any unmanaged resources used by this object.

Declaration
C#
Copy
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
C#
Copy
protected ~EventObject()

Implements

System.IDisposable