Freigeben über


String.CopyValueOf Method

Definition

Overloads

CopyValueOf(Char[])

Equivalent to #valueOf(char[]).

CopyValueOf(Char[], Int32, Int32)

Equivalent to #valueOf(char[], int, int).

CopyValueOf(Char[])

Equivalent to #valueOf(char[]).

[Android.Runtime.Register("copyValueOf", "([C)Ljava/lang/String;", "")]
public static string CopyValueOf (char[]? data);
[<Android.Runtime.Register("copyValueOf", "([C)Ljava/lang/String;", "")>]
static member CopyValueOf : char[] -> string

Parameters

data
Char[]

the character array.

Returns

a String that contains the characters of the character array.

Attributes

Exceptions

if data is null.

Remarks

Equivalent to #valueOf(char[]).

Java documentation for java.lang.String.copyValueOf(char[]).

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

CopyValueOf(Char[], Int32, Int32)

Equivalent to #valueOf(char[], int, int).

[Android.Runtime.Register("copyValueOf", "([CII)Ljava/lang/String;", "")]
public static string CopyValueOf (char[]? data, int offset, int count);
[<Android.Runtime.Register("copyValueOf", "([CII)Ljava/lang/String;", "")>]
static member CopyValueOf : char[] * int * int -> string

Parameters

data
Char[]

the character array.

offset
Int32

initial offset of the subarray.

count
Int32

length of the subarray.

Returns

a String that contains the characters of the specified subarray of the character array.

Attributes

Exceptions

if data is null.

if length or start + length > data.length.

Remarks

Equivalent to #valueOf(char[], int, int).

Java documentation for java.lang.String.copyValueOf(char[], int, int).

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