Class ComponentRunningContext
Definition
- Namespace:
- Tizen.Applications.ComponentBased
- Assembly:
- Tizen.Applications.ComponentBased.ComponentManager.dll
- API Level:
- 6
This class provides methods and properties to get information of the running component.
public class ComponentRunningContext : IDisposable
- Inheritance
-
ComponentRunningContext
- Implements
Constructors
View SourceComponentRunningContext(String)
A constructor of ComponentRunningContext that takes the component ID.
Declaration
public ComponentRunningContext(string componentId)
Parameters
Type | Name | Description |
---|---|---|
String | componentId | Component ID. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the "component not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/packagemanager.info
Properties
View SourceApplicationId
Gets the application ID of the component.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceComponentId
Gets the ID of the component.
Declaration
public string ComponentId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceInstanceId
Gets the instance ID of the component.
Declaration
public string InstanceId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceIsSubComponent
Checks whether the component is running as sub component of the group.
Declaration
public bool IsSubComponent { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourceIsTerminated
Checks whether the component is terminated or not.
Declaration
public bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourceState
Gets the state of the component.
Declaration
public ComponentRunningContext.ComponentState State { get; }
Property Value
Type | Description |
---|---|
ComponentRunningContext.ComponentState |
API Level: 6
Methods
View SourceDispose()
Releases all resources used by the ComponentInfo class.
Declaration
public void Dispose()
API Level: 6
View SourceFinalize()
Destructor of the class.
Declaration
protected void Finalize()
Resume()
Resumes the running component.
Declaration
public void Resume()
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |