AbstractPreferences.GetByteArray(String, Byte[]) 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.
Implements the getByteArray
method as per the specification in
Preferences#getByteArray(String,byte[])
.
[Android.Runtime.Register("getByteArray", "(Ljava/lang/String;[B)[B", "GetGetByteArray_Ljava_lang_String_arrayBHandler")]
public override byte[]? GetByteArray (string? key, byte[]? def);
[<Android.Runtime.Register("getByteArray", "(Ljava/lang/String;[B)[B", "GetGetByteArray_Ljava_lang_String_arrayBHandler")>]
override this.GetByteArray : string * byte[] -> byte[]
Parameters
- key
- String
key whose associated value is to be returned as a byte array.
- def
- Byte[]
the value to be returned in the event that this
preference node has no value associated with key
or the associated value cannot be interpreted as a byte array.
Returns
the byte array value represented by the string associated with
key
in this preference node, or def
if the
associated value does not exist or cannot be interpreted as
a byte array.
- Attributes
Remarks
Implements the getByteArray
method as per the specification in Preferences#getByteArray(String,byte[])
.
Java documentation for java.util.prefs.AbstractPreferences.getByteArray(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.