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#Copypublic class ComponentInfo : IDisposable
- Inheritance
-
objectComponentInfo
- Implements
-
System.IDisposable
Constructors
ComponentInfo(string)
Initializes a new instance of the ComponentInfo class with the specified component ID.
Declaration
C#Copypublic 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
Declaration
C#Copypublic string ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic string ComponentId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic ComponentType ComponentType { get; }
Property Value
| Type | Description |
|---|---|
| ComponentType |
Declaration
C#Copypublic string IconPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Declaration
C#Copypublic bool IsIconDisplayed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Declaration
C#Copypublic bool IsManagedByTaskManager { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Declaration
C#Copypublic string Label { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~ComponentInfo()
GetLocalizedLabel(string)
Gets the localized label of the component for a specified locale.
Declaration
C#Copypublic 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)]".