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.

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

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