Språk

PackageManager.GetProperty Method

Definition

Overloads

Name Description
GetProperty(String, ComponentName)

Returns the property defined in the given component declaration.

GetProperty(String, String)

Returns the property defined in the given component declaration.

GetProperty(String, ComponentName)

Returns the property defined in the given component declaration.

[Android.Runtime.Register("getProperty", "(Ljava/lang/String;Landroid/content/ComponentName;)Landroid/content/pm/PackageManager$Property;", "GetGetProperty_Ljava_lang_String_Landroid_content_ComponentName_Handler", ApiSince=31)]
public virtual Android.Content.PM.PackageManager.Property GetProperty(string propertyName, Android.Content.ComponentName component);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;Landroid/content/ComponentName;)Landroid/content/pm/PackageManager$Property;", "GetGetProperty_Ljava_lang_String_Landroid_content_ComponentName_Handler", ApiSince=31)>]
abstract member GetProperty : string * Android.Content.ComponentName -> Android.Content.PM.PackageManager.Property
override this.GetProperty : string * Android.Content.ComponentName -> Android.Content.PM.PackageManager.Property

Parameters

propertyName
String

The manifest property name to find.

component
ComponentName

The component declaration in which to find the property.

Returns

The property record defined on the requested component.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.getProperty(java.lang.String, android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetProperty(String, String)

Returns the property defined in the given component declaration.

[Android.Runtime.Register("getProperty", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/pm/PackageManager$Property;", "GetGetProperty_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)]
public virtual Android.Content.PM.PackageManager.Property GetProperty(string propertyName, string packageName);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/pm/PackageManager$Property;", "GetGetProperty_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member GetProperty : string * string -> Android.Content.PM.PackageManager.Property
override this.GetProperty : string * string -> Android.Content.PM.PackageManager.Property

Parameters

propertyName
String

The manifest property name to find.

packageName
String

The package whose application declaration is searched.

Returns

The property record defined on the package's application declaration.

Attributes

Remarks

Java documentation for android.content.pm.PackageManager.getProperty(java.lang.String, android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to