Class ComponentInfo
Definition
- Namespace:
- Tizen.Applications.ComponentBased
- Assembly:
- Tizen.Applications.ComponentBased.ComponentManager.dll
- API Level:
- 6
This class provides methods and properties to get information of the component.
public class ComponentInfo : IDisposable
- Inheritance
-
ComponentInfo
- Implements
Constructors
View SourceComponentInfo(String)
A constructor of ComponentInfo that takes the component ID.
Declaration
public ComponentInfo(string componentId)
Parameters
Type | Name | Description |
---|---|---|
String | componentId | Component ID. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
InvalidOperationException | Thrown when failed because of the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/packagemanager.info
Properties
View SourceApplicationId
Gets the application ID of the component.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceComponentId
Gets the component ID.
Declaration
public string ComponentId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceComponentType
Gets the type of the component.
Declaration
public ComponentType ComponentType { get; }
Property Value
Type | Description |
---|---|
ComponentType |
API Level: 6
View SourceIconPath
Gets the absolute path of the icon image.
Declaration
public string IconPath { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 6
View SourceIsIconDisplayed
Checks whether the icon of the component should be displayed or not.
Declaration
public bool IsIconDisplayed { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourceIsManagedByTaskManager
Checks whether the component should be managed by task-manager or not.
Declaration
public bool IsManagedByTaskManager { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourceLabel
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()
API Level: 6
View SourceFinalize()
Destructor of the class.
Declaration
protected void Finalize()
GetLocalizedLabel(String)
Gets the localized label of the component for the given locale.
Declaration
public string GetLocalizedLabel(string locale)
Parameters
Type | Name | Description |
---|---|---|
String | locale | Locale. |
Returns
Type | Description |
---|---|
String | The localized label. |
Remarks
The format of locale is language and country code. (available value: "[2-letter lowercase language code (ISO 639-1)]-[2-letter lowercase country code (ISO 3166-alpha-2)]")