Android Guides | Samples

Java.Lang.String.ValueOf Method

Returns a new string containing the same chars as the given subset of the given array.

Syntax

[Android.Runtime.Register("valueOf", "([CII)Ljava/lang/String;", "")]
public static String ValueOf (Char[] data, Int32 start, Int32 length)

Parameters

data
the array of characters.
start
the starting offset in the character array.
length
the number of characters to use.

Exceptions

TypeReason
IndexOutOfBoundsExceptionif length , start or start + length > data.length
NullPointerExceptionif data is null.

Remarks

Returns a new string containing the same chars as the given subset of the given array. Modifying the array after creating the string has no effect on the string.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1