Class ComponentRunningContext

Definition

Namespace:
Tizen.Applications.ComponentBased
Assembly:
Tizen.Applications.ComponentBased.ComponentManager.dll

Represents the context of a running component, providing methods and properties to retrieve information about the component's state and behavior.

C#
Copy
public class ComponentRunningContext : IDisposable
Inheritance
object
ComponentRunningContext
Implements
System.IDisposable

Constructors

View Source

ComponentRunningContext(string)

Initializes a new instance of the ComponentRunningContext class with a specified component ID, retrieving the context handle associated with it.

Declaration
C#
Copy
public ComponentRunningContext(string componentId)
Parameters
Type Name Description
string componentId

The ID of the component.

Exceptions
Type Condition
System.ArgumentException

Thrown when the component ID is invalid.

System.InvalidOperationException

Thrown when the component does not exist or a system error occurs.

System.OutOfMemoryException

Thrown when memory allocation fails.

System.UnauthorizedAccessException

Thrown when permission is denied to access the component.

Properties

View Source

ApplicationId

Gets the application ID associated with the component.

Declaration
C#
Copy
public string ApplicationId { get; }
Property Value
Type Description
string
View Source

ComponentId

Gets the ID of the component.

Declaration
C#
Copy
public string ComponentId { get; }
Property Value
Type Description
string

The component ID as a string.

View Source

InstanceId

Gets the instance ID of the component.

Declaration
C#
Copy
public string InstanceId { get; }
Property Value
Type Description
string
View Source

IsSubComponent

Checks whether the component is running as a sub-component of a group.

Declaration
C#
Copy
public bool IsSubComponent { get; }
Property Value
Type Description
bool

true if the component is a sub-component; otherwise, false.

View Source

IsTerminated

Checks whether the component has been terminated.

Declaration
C#
Copy
public bool IsTerminated { get; }
Property Value
Type Description
bool

true if the component is terminated; otherwise, false.

View Source

State

Gets the current state of the component.

Declaration
C#
Copy
public ComponentRunningContext.ComponentState State { get; }
Property Value
Type Description
ComponentRunningContext.ComponentState

Methods

View Source

Dispose()

Releases all resources used by the ComponentRunningContext class.

Declaration
C#
Copy
public void Dispose()
View Source

~ComponentRunningContext()

Finalizes an instance of the ComponentRunningContext class.

Declaration
C#
Copy
protected ~ComponentRunningContext()
View Source

Resume()

Resumes the execution of the running component.

Declaration
C#
Copy
public void Resume()
Exceptions
Type Condition
System.ArgumentException

Thrown when the argument is invalid.

System.InvalidOperationException

Thrown when a system error occurs.

System.OutOfMemoryException

Thrown when memory allocation fails.

System.UnauthorizedAccessException

Thrown when permission is denied to resume the component.

Implements

System.IDisposable