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.
public class ComponentRunningContext : IDisposable
- Inheritance
-
objectComponentRunningContext
- Implements
-
System.IDisposable
Constructors
View SourceComponentRunningContext(string)
Initializes a new instance of the ComponentRunningContext class with a specified component ID, retrieving the context handle associated with it.
Declaration
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 SourceApplicationId
Gets the application ID associated with the component.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
string |
ComponentId
Gets the ID of the component.
Declaration
public string ComponentId { get; }
Property Value
Type | Description |
---|---|
string | The component ID as a string. |
InstanceId
Gets the instance ID of the component.
Declaration
public string InstanceId { get; }
Property Value
Type | Description |
---|---|
string |
IsSubComponent
Checks whether the component is running as a sub-component of a group.
Declaration
public bool IsSubComponent { get; }
Property Value
Type | Description |
---|---|
bool |
|
IsTerminated
Checks whether the component has been terminated.
Declaration
public bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
bool |
|
State
Gets the current state of the component.
Declaration
public ComponentRunningContext.ComponentState State { get; }
Property Value
Type | Description |
---|---|
ComponentRunningContext.ComponentState |
Methods
View SourceDispose()
Releases all resources used by the ComponentRunningContext class.
Declaration
public void Dispose()
~ComponentRunningContext()
Finalizes an instance of the ComponentRunningContext class.
Declaration
protected ~ComponentRunningContext()
Resume()
Resumes the execution of the running component.
Declaration
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. |