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
    object
    ComponentRunningContext
    Implements
    System.IDisposable

    Constructors

    View Source

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

    ApplicationId

    Gets the application ID associated with 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

    The component ID as a 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 a sub-component of a group.

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

    true if the component is a sub-component; otherwise, false.

    View Source

    IsTerminated

    Checks whether the component has been terminated.

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

    true if the component is terminated; otherwise, false.

    View Source

    State

    Gets the current 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 ComponentRunningContext class.

    Declaration
    public void Dispose()
    View Source

    ~ComponentRunningContext()

    Finalizes an instance of the ComponentRunningContext class.

    Declaration
    protected ~ComponentRunningContext()
    View Source

    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.

    Implements

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