Class ComponentRunningContext

    Definition

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

    This class provides methods and properties to get information of the running component.

    public class ComponentRunningContext : IDisposable
    Inheritance
    object
    ComponentRunningContext
    Implements
    System.IDisposable

    Constructors

    View Source

    ComponentRunningContext(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
    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.

    System.OutOfMemoryException

    Thrown when failed because of out of memory.

    System.UnauthorizedAccessException

    Thrown when failed because of permission denied.

    Properties

    View Source

    ApplicationId

    Gets the application ID of the component.

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

    ComponentId

    Gets the ID of the component.

    Declaration
    public string ComponentId { get; }
    Property Value
    Type Description
    string
    View Source

    InstanceId

    Gets the instance ID of the component.

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

    IsSubComponent

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

    Declaration
    public bool IsSubComponent { get; }
    Property Value
    Type Description
    bool
    View Source

    IsTerminated

    Checks whether the component is terminated or not.

    Declaration
    public bool IsTerminated { get; }
    Property Value
    Type Description
    bool
    View Source

    State

    Gets the state of the component.

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

    Methods

    View Source

    Dispose()

    Releases all resources used by the ComponentInfo class.

    Declaration
    public void Dispose()
    View Source

    ~ComponentRunningContext()

    Destructor of the class.

    Declaration
    protected ~ComponentRunningContext()
    View Source

    Resume()

    Resumes the running component.

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

    System.OutOfMemoryException

    Thrown when failed because of out of memory.

    System.UnauthorizedAccessException

    Thrown when failed because of permission denied.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX