SqlDataRecord.SetValues(Object[]) Method

Definition

Sets new values for all of the columns in the SqlDataRecord. These values are expressed as common language runtime (CLR) types.

C#
public virtual int SetValues (params object[] values);

Parameters

values
Object[]

The array of new values, expressed as CLR types boxed as Object references, for the SqlDataRecord instance.

Returns

The number of column values set as an integer.

Exceptions

values is null.

The size of values does not match the number of columns in the SqlDataRecord instance.

Remarks

The length of values must match the number of columns in the SqlDataRecord instance.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1