共用方式為


PackageManager.GetProperty Method

Definition

Overloads

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
component
ComponentName

Returns

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
packageName
String

Returns

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