ContentValues.Put 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.
Overloads
Put(String, String) |
Adds a value to the set. |
Put(String, SByte) |
Adds a value to the set. |
Put(String, Int64) |
Adds a value to the set. |
Put(String, Int32) |
Adds a value to the set. |
Put(String, Single) |
Adds a value to the set. |
Put(String, Double) |
Adds a value to the set. |
Put(String, Byte[]) |
Adds a value to the set. |
Put(String, Boolean) |
Adds a value to the set. |
Put(String, Int16) |
Adds a value to the set. |
Put(String, String)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void Put (string? key, string? value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
member this.Put : string * string -> unit
Parameters
- key
- String
the name of the value to put
- value
- String
the data for the value to put
- Attributes
Remarks
Adds a value to the set.
Java documentation for android.content.ContentValues.put(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.
Applies to
Put(String, SByte)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Byte;)V", "")]
public void Put (string key, sbyte value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Byte;)V", "")>]
member this.Put : string * sbyte -> unit
Parameters
- key
- String
the name of the value to put
- value
- SByte
the data for the value to put
- Attributes
Remarks
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
Put(String, Int64)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Long;)V", "")]
public void Put (string key, long value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Long;)V", "")>]
member this.Put : string * int64 -> unit
Parameters
- key
- String
the name of the value to put
- value
- Int64
the data for the value to put
- Attributes
Remarks
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
Put(String, Int32)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Integer;)V", "")]
public void Put (string key, int value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Integer;)V", "")>]
member this.Put : string * int -> unit
Parameters
- key
- String
the name of the value to put
- value
- Int32
the data for the value to put
- Attributes
Remarks
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
Put(String, Single)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Float;)V", "")]
public void Put (string key, float value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Float;)V", "")>]
member this.Put : string * single -> unit
Parameters
- key
- String
the name of the value to put
- value
- Single
the data for the value to put
- Attributes
Remarks
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
Put(String, Double)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Double;)V", "")]
public void Put (string key, double value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Double;)V", "")>]
member this.Put : string * double -> unit
Parameters
- key
- String
the name of the value to put
- value
- Double
the data for the value to put
- Attributes
Remarks
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
Put(String, Byte[])
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;[B)V", "")]
public void Put (string? key, byte[]? value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;[B)V", "")>]
member this.Put : string * byte[] -> unit
Parameters
- key
- String
the name of the value to put
- value
- Byte[]
the data for the value to put
- Attributes
Remarks
Adds a value to the set.
Java documentation for android.content.ContentValues.put(java.lang.String, byte[])
.
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
Put(String, Boolean)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Boolean;)V", "")]
public void Put (string key, bool value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Boolean;)V", "")>]
member this.Put : string * bool -> unit
Parameters
- key
- String
the name of the value to put
- value
- Boolean
the data for the value to put
- Attributes
Remarks
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
Put(String, Int16)
Adds a value to the set.
[Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Short;)V", "")]
public void Put (string key, short value);
[<Android.Runtime.Register("put", "(Ljava/lang/String;Ljava/lang/Short;)V", "")>]
member this.Put : string * int16 -> unit
Parameters
- key
- String
the name of the value to put
- value
- Int16
the data for the value to put
- Attributes
Remarks
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.