Class EventObject
Definition
- Assembly:
- Tizen.Core.dll
Represents an event object used for broadcasting the event.
public class EventObject : IDisposable
- Inheritance
-
objectEventObject
- Implements
-
System.IDisposable
Constructors
View SourceEventObject(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 SourceData
Gets the Data of the event object.
Declaration
public object Data { get; }
Property Value
Type | Description |
---|---|
object |
Id
Gets the ID of the event object.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceDispose()
Release any unmanaged resources used by this object.
Declaration
public void Dispose()
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. |
~EventObject()
Finalizes an instance of the EventObject class.
Declaration
protected ~EventObject()
Implements
System.IDisposable