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#Copypublic class ComponentRunningContext : IDisposable
- Inheritance
- 
      objectComponentRunningContext
- Implements
- 
      System.IDisposable
Constructors
ComponentRunningContext(string)
Initializes a new instance of the ComponentRunningContext class with a specified component ID, retrieving the context handle associated with it.
Declaration
C#Copypublic 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
Declaration
C#Copypublic string ApplicationId { get; }
Property Value
| Type | Description | 
|---|---|
| string | 
Declaration
C#Copypublic string ComponentId { get; }
Property Value
| Type | Description | 
|---|---|
| string | The component ID as a string. | 
Declaration
C#Copypublic string InstanceId { get; }
Property Value
| Type | Description | 
|---|---|
| string | 
Declaration
C#Copypublic bool IsSubComponent { get; }
Property Value
| Type | Description | 
|---|---|
| bool | 
 | 
Declaration
C#Copypublic bool IsTerminated { get; }
Property Value
| Type | Description | 
|---|---|
| bool | 
 | 
Declaration
C#Copypublic ComponentRunningContext.ComponentState State { get; }
Property Value
| Type | Description | 
|---|---|
| ComponentRunningContext.ComponentState | 
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~ComponentRunningContext()
Declaration
C#Copypublic 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. |