Class ComponentInfo

    Definition

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

    Provides methods and properties to retrieve information about a component in a Tizen application. This class encapsulates details such as component ID, application ID, and other attributes.

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

    Constructors

    View Source

    ComponentInfo(string)

    Initializes a new instance of the ComponentInfo class with the specified component ID.

    Declaration
    public ComponentInfo(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 a system error occurs.

    System.OutOfMemoryException

    Thrown when memory allocation fails.

    System.UnauthorizedAccessException

    Thrown when permission is denied.

    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
    View Source

    ComponentType

    Gets the type of the component.

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

    IconPath

    Gets the absolute path of the component's icon image.

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

    IsIconDisplayed

    Checks whether the icon of the component should be displayed.

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

    IsManagedByTaskManager

    Checks whether the component is managed by the task manager.

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

    Label

    Gets the label of the component.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Dispose()

    Releases all resources used by the ComponentInfo class.

    Declaration
    public void Dispose()
    View Source

    ~ComponentInfo()

    Finalizes an instance of the ComponentInfo class.

    Declaration
    protected ~ComponentInfo()
    View Source

    GetLocalizedLabel(string)

    Gets the localized label of the component for a specified locale.

    Declaration
    public string GetLocalizedLabel(string locale)
    Parameters
    Type Name Description
    string locale

    The locale in the format of language and country code (e.g., "en-US").

    Returns
    Type Description
    string

    The localized label corresponding to the specified locale.

    Remarks

    Available values are in the format "[2-letter lowercase language code (ISO 639-1)]-[2-letter lowercase country code (ISO 3166-alpha-2)]".

    Implements

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