Class EventObject
Definition
- Assembly:
- Tizen.Core.dll
Represents an event object used for broadcasting the event.
C#Copypublic class EventObject : IDisposable
- Inheritance
-
objectEventObject
- Implements
-
System.IDisposable
Constructors
View Source
EventObject(int, object)
Constructor for creating a new event object with specified ID and data.
Declaration
C#Copypublic EventObject(int id, object data)
Parameters
Type | Name | Description |
---|---|---|
int | id | The ID. |
object | data | The data object. |
Examples
Copyint 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
Declaration
C#Copypublic object Data { get; }
Property Value
Type | Description |
---|---|
object |
Declaration
C#Copypublic int Id { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Declaration
C#Copyprotected ~EventObject()
Implements
System.IDisposable