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
-
objectComponentInfo
- Implements
-
System.IDisposable
Constructors
View SourceComponentInfo(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 SourceApplicationId
Gets the application ID associated with the component.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
string |
ComponentId
Gets the ID of the component.
Declaration
public string ComponentId { get; }
Property Value
Type | Description |
---|---|
string |
ComponentType
Gets the type of the component.
Declaration
public ComponentType ComponentType { get; }
Property Value
Type | Description |
---|---|
ComponentType |
IconPath
Gets the absolute path of the component's icon image.
Declaration
public string IconPath { get; }
Property Value
Type | Description |
---|---|
string |
IsIconDisplayed
Checks whether the icon of the component should be displayed.
Declaration
public bool IsIconDisplayed { get; }
Property Value
Type | Description |
---|---|
bool |
IsManagedByTaskManager
Checks whether the component is managed by the task manager.
Declaration
public bool IsManagedByTaskManager { get; }
Property Value
Type | Description |
---|---|
bool |
Label
Gets the label of the component.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceDispose()
Releases all resources used by the ComponentInfo class.
Declaration
public void Dispose()
~ComponentInfo()
Finalizes an instance of the ComponentInfo class.
Declaration
protected ~ComponentInfo()
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)]".