Properties.SetProperty(String, String) Method
Definition
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.
Calls the Hashtable method put.
[Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;", "GetSetProperty_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Java.Lang.Object? SetProperty(string? key, string? value);
[<Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;", "GetSetProperty_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SetProperty : string * string -> Java.Lang.Object
override this.SetProperty : string * string -> Java.Lang.Object
Parameters
- key
- String
the key to be placed into this property list.
- value
- String
the value corresponding to key.
Returns
the previous value of the specified key in this property
list, or null if it did not have one.
- Attributes
Remarks
Calls the Hashtable method put. Provided for parallelism with the getProperty method. Enforces use of strings for property keys and values. The value returned is the result of the Hashtable call to put.
Added in 1.2.
Java documentation for java.util.Properties.setProperty(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.