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.

C#
Copy
public class ComponentInfo : IDisposable
Inheritance
System.Object
ComponentInfo
Implements
System.IDisposable

Constructors

View Source

ComponentInfo(String)

A constructor of ComponentInfo that takes the component ID.

Declaration
C#
Copy
public ComponentInfo(string componentId)
Parameters
Type Name Description
System.String componentId

Component ID.

Exceptions
Type Condition
System.ArgumentException

Thrown when failed because of an invalid argument.

System.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 Source

ApplicationId

Gets the application ID of the component.

Declaration
C#
Copy
public string ApplicationId { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

ComponentId

Gets the component ID.

Declaration
C#
Copy
public string ComponentId { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

ComponentType

Gets the type of the component.

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

IconPath

Gets the absolute path of the icon image.

Declaration
C#
Copy
public string IconPath { get; }
Property Value
Type Description
System.String
API Level: 6
View Source

IsIconDisplayed

Checks whether the icon of the component should be displayed or not.

Declaration
C#
Copy
public bool IsIconDisplayed { get; }
Property Value
Type Description
Boolean
API Level: 6
View Source

IsManagedByTaskManager

Checks whether the component should be managed by task-manager or not.

Declaration
C#
Copy
public bool IsManagedByTaskManager { get; }
Property Value
Type Description
Boolean
API Level: 6
View Source

Label

Gets the label of the component.

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

Methods

View Source

Dispose()

Releases all resources used by the ComponentInfo class.

Declaration
C#
Copy
public void Dispose()
API Level: 6
View Source

Finalize()

Destructor of the class.

Declaration
C#
Copy
protected void Finalize()
View Source

GetLocalizedLabel(String)

Gets the localized label of the component for the given locale.

Declaration
C#
Copy
public string GetLocalizedLabel(string locale)
Parameters
Type Name Description
System.String locale

Locale.

Returns
Type Description
System.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)]")

API Level: 6

Implements

System.IDisposable