SqlDataRecord.SetValues Method (Object[])

 

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

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

public virtual int SetValues(
	params object[] values
)

Parameters

values
Type: System.Object[]

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

Return Value

Type: System.Int32

The number of column values set as an integer.

Exception Condition
ArgumentNullException

values is null.

ArgumentException

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

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

.NET Framework
Available since 2.0
Return to top
Show: