Class EventObject
Definition
- Assembly:
- Tizen.Core.dll
Represents an event object used for broadcasting the event.
C#
Copy
public class EventObject : IDisposable
- Inheritance
-
objectEvent
Object
- 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. |
Thrown when out of memory. |
System. |
Thrown when failed because of an invalid operation. |
Properties
Declaration
C#
Copy
public object Data { get; }
Property Value
Type | Description |
---|---|
object |
Declaration
C#
Copy
public int Id { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Declaration
C#
Copy
public void Dispose()
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. |
Declaration
C#
Copy
protected ~EventObject()
Implements
System.IDisposable