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.

C#
Copy
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
C#
Copy
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
C#
Copy
public string ApplicationId { get; }
Property Value
Type Description
string
View Source

ComponentId

Gets the ID of the component.

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

ComponentType

Gets the type of the component.

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

IconPath

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

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

IsIconDisplayed

Checks whether the icon of the component should be displayed.

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

IsManagedByTaskManager

Checks whether the component is managed by the task manager.

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

Label

Gets the label of the component.

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

Methods

View Source

Dispose()

Releases all resources used by the ComponentInfo class.

Declaration
C#
Copy
public void Dispose()
View Source

~ComponentInfo()

Finalizes an instance of the ComponentInfo class.

Declaration
C#
Copy
protected ~ComponentInfo()
View Source

GetLocalizedLabel(string)

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

Declaration
C#
Copy
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