Android Guides | Samples

Java.Lang.String Constructor

Converts a subsequence of the byte array to a string using the system's Charset.DefaultCharset.

Syntax

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

Parameters

data
offset
byteCount

Exceptions

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

Remarks

Converts a subsequence of the byte array to a string using the system's Charset.DefaultCharset.

[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