SqlDataRecord.SetValues(Object[]) SqlDataRecord.SetValues(Object[]) SqlDataRecord.SetValues(Object[]) SqlDataRecord.SetValues(Object[]) Method

定义

设置 SqlDataRecord 中所有列的新值。Sets new values for all of the columns in the SqlDataRecord. 这些值表示为公共语言运行时 (CLR) 类型。These values are expressed as common language runtime (CLR) types.

public:
 virtual int SetValues(... cli::array <System::Object ^> ^ values);
public virtual int SetValues (params object[] values);
abstract member SetValues : obj[] -> int
override this.SetValues : obj[] -> int
Public Overridable Function SetValues (ParamArray values As Object()) As Integer

参数

values
Object[]

SqlDataRecord 实例的新值数组,其表示为装箱为 Object 引用的 CLR 类型。The array of new values, expressed as CLR types boxed as Object references, for the SqlDataRecord instance.

返回

列值数设置为整数。The number of column values set as an integer.

异常

值的大小与 SqlDataRecord 实例中的列数不匹配。The size of values does not match the number of columns in the SqlDataRecord instance.

注解

值的长度必须与匹配中的列数SqlDataRecord实例。The length of values must match the number of columns in the SqlDataRecord instance.

适用于