Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetProperty(String) |
Searches for the property with the specified key in this property list. |
GetProperty(String, String) |
Searches for the property with the specified key in this property list. |
Searches for the property with the specified key in this property list.
[Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Handler")]
public virtual string? GetProperty(string? key);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Handler")>]
abstract member GetProperty : string -> string
override this.GetProperty : string -> string
the property key.
the value in this property list with the specified key value.
Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns null
if the property is not found.
Java documentation for java.util.Properties.getProperty(java.lang.String)
.
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.
Searches for the property with the specified key in this property list.
[Android.Runtime.Register("getProperty", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual string? GetProperty(string? key, string? defaultValue);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetProperty_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member GetProperty : string * string -> string
override this.GetProperty : string * string -> string
the hashtable key.
a default value.
the value in this property list with the specified key value.
Searches for the property with the specified key in this property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns the default value argument if the property is not found.
Java documentation for java.util.Properties.getProperty(java.lang.String, java.lang.String)
.
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.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in