Array.SetChar(Object, Int32, Char) 方法

定义

将指定数组对象的索引组件的值设置为指定 char 值。

[Android.Runtime.Register("setChar", "(Ljava/lang/Object;IC)V", "")]
public static void SetChar(Java.Lang.Object array, int index, char c);
[<Android.Runtime.Register("setChar", "(Ljava/lang/Object;IC)V", "")>]
static member SetChar : Java.Lang.Object * int * char -> unit

参数

array
Object

数组

index
Int32

数组中的索引

c
Char

索引组件的新值

属性

例外

如果 array == null

array如果不是数组,或者值不能通过扩大转换转换为数组类型

如果 index = array.length

注解

将指定数组对象的索引组件的值设置为指定 char 值。

Java文档java.lang.reflect.Array.setChar(java.lang.Object, int, char)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于