Android Guides | Samples

Java.Lang.String Constructor

Initializes this string to contain the given chars.

Syntax

[Android.Runtime.Register(".ctor", "([CII)V", "")]
public String (Char[] data, Int32 start, Int32 length)

Parameters

data
offset
charCount

Exceptions

TypeReason
NullPointerExceptionif data == null.
IndexOutOfBoundsExceptionif charCount data.length

Remarks

Initializes this string to contain the given chars. 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