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.

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

Constructors

View Source

ComponentRunningContext(String)

A constructor of ComponentRunningContext that takes the component ID.

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

Component ID.

Exceptions
Type Condition
System.ArgumentException

Thrown when failed because of an invalid argument.

System.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 Source

ApplicationId

Gets the application ID of the component.

Declaration
C#
Copy
public string ApplicationId { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

ComponentId

Gets the ID of the component.

Declaration
C#
Copy
public string ComponentId { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

InstanceId

Gets the instance ID of the component.

Declaration
C#
Copy
public string InstanceId { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

IsSubComponent

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

Declaration
C#
Copy
public bool IsSubComponent { get; }
Property Value
Type Description
Boolean
API Level: 6
View Source

IsTerminated

Checks whether the component is terminated or not.

Declaration
C#
Copy
public bool IsTerminated { get; }
Property Value
Type Description
Boolean
API Level: 6
View Source

State

Gets the state of the component.

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

Methods

View Source

Dispose()

Releases all resources used by the ComponentInfo class.

Declaration
C#
Copy
public void Dispose()
API Level: 6
View Source

Finalize()

Destructor of the class.

Declaration
C#
Copy
protected void Finalize()
View Source

Resume()

Resumes the running component.

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

Thrown when failed because of an invalid argument.

System.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.

API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.launch

Implements

System.IDisposable