SqlDataRecord SqlDataRecord SqlDataRecord SqlDataRecord Class

定义

表示单个数据行及其元数据。Represents a single row of data and its metadata. 此类不能被继承。This class cannot be inherited.

public ref class SqlDataRecord : System::Data::IDataRecord
public class SqlDataRecord : System.Data.IDataRecord
type SqlDataRecord = class
    interface IDataRecord
Public Class SqlDataRecord
Implements IDataRecord
继承
SqlDataRecordSqlDataRecordSqlDataRecordSqlDataRecord
实现

示例

下面的示例演示如何创建多个SqlMetaData对象,描述记录的列元数据,并创建SqlDataRecordThe following example shows how to create several SqlMetaData objects, which describe the column metadata of a record, and creating a SqlDataRecord. 列的值SqlDataRecord设置和SqlDataRecord通过使用发送到调用程序SqlContext类。The column values of the SqlDataRecord are set and the SqlDataRecord is sent to the calling program by using the SqlContext class.

[Microsoft.SqlServer.Server.SqlProcedure]
public static void CreateNewRecord()
{

   // Variables.
   SqlDataRecord record;    
      
   // Create a new record with the column metadata. The constructor is 
   // able to accept a variable number of parameters. 
   record = new SqlDataRecord(new SqlMetaData[] { new SqlMetaData("Column1", SqlDbType.NVarChar, 12), 
                                                  new SqlMetaData("Column2", SqlDbType.Int), 
                                                  new SqlMetaData("Column3", SqlDbType.DateTime) });

   // Set the record fields.
   record.SetString(0, "Hello World!");
   record.SetInt32(1, 42);
   record.SetDateTime(2, DateTime.Now);

   // Send the record to the calling program.
   SqlContext.Pipe.Send(record);
}
<Microsoft.SqlServer.Server.SqlProcedure()> _
Public Shared Sub CreateNewRecord()

   ' Variables.
   Dim record As SqlDataRecord
   
   ' Create a new record with the column metadata.  The constructor is 
   ' able to accept a variable number of parameters.     
   record = New SqlDataRecord(New SqlMetaData() {New SqlMetaData("Column1", SqlDbType.NVarChar, 12), _
                                                 New SqlMetaData("Column2", SqlDbType.Int), _
                                                 New SqlMetaData("Column3", SqlDbType.DateTime)})

   ' Set the record fields.
   record.SetString(0, "Hello World!")
   record.SetInt32(1, 42)
   record.SetDateTime(2, DateTime.Now)

   ' Send the record to the calling program.
   SqlContext.Pipe.Send(record)

End Sub

注解

使用此类一起使用SqlPipe从托管的代码存储过程将结果集发送到客户端。This class is used together with SqlPipe to send result sets to the client from managed code stored-procedures.

如果编写公共语言运行时 (CLR) 应用程序,则应重新使用现有SqlDataRecord而不是每次创建新的对象。When writing common language runtime (CLR) applications, you should re-use existing SqlDataRecord objects instead of creating new ones every time. 创建很多新SqlDataRecord对象可能严重消耗内存和性能产生负面影响。Creating many new SqlDataRecord objects could severely deplete memory and adversely affect performance.

构造函数

SqlDataRecord(SqlMetaData[]) SqlDataRecord(SqlMetaData[]) SqlDataRecord(SqlMetaData[]) SqlDataRecord(SqlMetaData[])

使用基于作为参数传递的 SqlMetaData 对象数组的架构初始化新的 SqlDataRecordInititializes a new SqlDataRecord instance with the schema based on the array of SqlMetaData objects passed as an argument.

属性

FieldCount FieldCount FieldCount FieldCount

获取数据行的列数。Gets the number of columns in the data row. 此属性是只读的。This property is read-only.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

为列 ordinal 参数所指定的列,获取公共语言运行时 (CLR) 类型值。Gets the common language runtime (CLR) type value for the column specified by the column ordinal argument.

Item[String] Item[String] Item[String] Item[String]

为列 name 参数所指定的列,获取公共语言运行时 (CLR) 类型值。Gets the common language runtime (CLR) type value for the column specified by the column name argument.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBoolean(Int32) GetBoolean(Int32) GetBoolean(Int32) GetBoolean(Int32)

获取序号所指定的列的值,其形式为 BooleanGets the value for the column specified by the ordinal as a Boolean.

GetByte(Int32) GetByte(Int32) GetByte(Int32) GetByte(Int32)

获取序号所指定的列的值,其形式为 ByteGets the value for the column specified by the ordinal as a Byte.

GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32)

获取序号指定的列的值,其形式为 Byte 对象数组。Gets the value for the column specified by the ordinal as an array of Byte objects.

GetChar(Int32) GetChar(Int32) GetChar(Int32) GetChar(Int32)

获取序号所指定的列的值,其形式为 CharGets the value for the column specified by the ordinal as a Char.

GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32)

获取序号指定的列的值,其形式为 Char 对象数组。Gets the value for the column specified by the ordinal as an array of Char objects.

GetData(Int32) GetData(Int32) GetData(Int32) GetData(Int32)
GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32)

返回序号参数指定的列的数据类型名称。Returns the name of the data type for the column specified by the ordinal argument.

GetDateTime(Int32) GetDateTime(Int32) GetDateTime(Int32) GetDateTime(Int32)

获取序号所指定的列的值,其形式为 DateTimeGets the value for the column specified by the ordinal as a DateTime.

GetDateTimeOffset(Int32) GetDateTimeOffset(Int32) GetDateTimeOffset(Int32) GetDateTimeOffset(Int32)

DateTimeOffset 的形式返回指定列的数据。Returns the specified column's data as a DateTimeOffset.

GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32)

获取序号所指定的列的值,其形式为 DecimalGets the value for the column specified by the ordinal as a Decimal.

GetDouble(Int32) GetDouble(Int32) GetDouble(Int32) GetDouble(Int32)

获取序号所指定的列的值,其形式为 DoubleGets the value for the column specified by the ordinal as a Double.

GetFieldType(Int32) GetFieldType(Int32) GetFieldType(Int32) GetFieldType(Int32)

返回一个 Type 对象,该对象表示映射到 ordinal 参数指定的列的 SQL Server 类型的公共语言运行时 (CLR) 类型。Returns a Type object representing the common language runtime (CLR) type that maps to the SQL Server type of the column specified by the ordinal argument.

GetFloat(Int32) GetFloat(Int32) GetFloat(Int32) GetFloat(Int32)

获取序号所指定的列的值,其形式为 floatGets the value for the column specified by the ordinal as a float.

GetGuid(Int32) GetGuid(Int32) GetGuid(Int32) GetGuid(Int32)

获取序号所指定的列的值,其形式为 GuidGets the value for the column specified by the ordinal as a Guid.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetInt16(Int32) GetInt16(Int32) GetInt16(Int32) GetInt16(Int32)

获取序号所指定的列的值,其形式为 Int16Gets the value for the column specified by the ordinal as a Int16.

GetInt32(Int32) GetInt32(Int32) GetInt32(Int32) GetInt32(Int32)

获取序号所指定的列的值,其形式为 Int32Gets the value for the column specified by the ordinal as a Int32.

GetInt64(Int32) GetInt64(Int32) GetInt64(Int32) GetInt64(Int32)

获取序号所指定的列的值,其形式为 Int64Gets the value for the column specified by the ordinal as a Int64.

GetName(Int32) GetName(Int32) GetName(Int32) GetName(Int32)

返回序号参数指定的列的名称。Returns the name of the column specified by the ordinal argument.

GetOrdinal(String) GetOrdinal(String) GetOrdinal(String) GetOrdinal(String)

返回此列名指定的列序号。Returns the column ordinal specified by the column name.

GetSqlBinary(Int32) GetSqlBinary(Int32) GetSqlBinary(Int32) GetSqlBinary(Int32)

获取序号所指定的列的值,其形式为 SqlBinaryGets the value for the column specified by the ordinal as a SqlBinary.

GetSqlBoolean(Int32) GetSqlBoolean(Int32) GetSqlBoolean(Int32) GetSqlBoolean(Int32)

获取序号所指定的列的值,其形式为 SqlBooleanGets the value for the column specified by the ordinal as a SqlBoolean.

GetSqlByte(Int32) GetSqlByte(Int32) GetSqlByte(Int32) GetSqlByte(Int32)

获取序号所指定的列的值,其形式为 SqlByteGets the value for the column specified by the ordinal as a SqlByte.

GetSqlBytes(Int32) GetSqlBytes(Int32) GetSqlBytes(Int32) GetSqlBytes(Int32)

获取序号所指定的列的值,其形式为 SqlBytesGets the value for the column specified by the ordinal as a SqlBytes.

GetSqlChars(Int32) GetSqlChars(Int32) GetSqlChars(Int32) GetSqlChars(Int32)

获取序号所指定的列的值,其形式为 SqlCharsGets the value for the column specified by the ordinal as a SqlChars.

GetSqlDateTime(Int32) GetSqlDateTime(Int32) GetSqlDateTime(Int32) GetSqlDateTime(Int32)

获取序号所指定的列的值,其形式为 SqlDateTimeGets the value for the column specified by the ordinal as a SqlDateTime.

GetSqlDecimal(Int32) GetSqlDecimal(Int32) GetSqlDecimal(Int32) GetSqlDecimal(Int32)

获取序号所指定的列的值,其形式为 SqlDecimalGets the value for the column specified by the ordinal as a SqlDecimal.

GetSqlDouble(Int32) GetSqlDouble(Int32) GetSqlDouble(Int32) GetSqlDouble(Int32)

获取序号所指定的列的值,其形式为 SqlDoubleGets the value for the column specified by the ordinal as a SqlDouble.

GetSqlFieldType(Int32) GetSqlFieldType(Int32) GetSqlFieldType(Int32) GetSqlFieldType(Int32)

返回 Type 对象,该对象表示映射到 SQL Server 类型列的类型(作为 System.Data.SqlTypes 中定义的 SQL Server 类型)。Returns a Type object that represents the type (as a SQL Server type, defined in System.Data.SqlTypes) that maps to the SQL Server type of the column.

GetSqlGuid(Int32) GetSqlGuid(Int32) GetSqlGuid(Int32) GetSqlGuid(Int32)

获取序号所指定的列的值,其形式为 SqlGuidGets the value for the column specified by the ordinal as a SqlGuid.

GetSqlInt16(Int32) GetSqlInt16(Int32) GetSqlInt16(Int32) GetSqlInt16(Int32)

获取序号所指定的列的值,其形式为 SqlInt16Gets the value for the column specified by the ordinal as a SqlInt16.

GetSqlInt32(Int32) GetSqlInt32(Int32) GetSqlInt32(Int32) GetSqlInt32(Int32)

获取序号所指定的列的值,其形式为 SqlInt32Gets the value for the column specified by the ordinal as a SqlInt32.

GetSqlInt64(Int32) GetSqlInt64(Int32) GetSqlInt64(Int32) GetSqlInt64(Int32)

获取序号所指定的列的值,其形式为 SqlInt64Gets the value for the column specified by the ordinal as a SqlInt64.

GetSqlMetaData(Int32) GetSqlMetaData(Int32) GetSqlMetaData(Int32) GetSqlMetaData(Int32)

返回 SqlMetaData 对象,它描述由列序号指定的列的元数据。Returns a SqlMetaData object, describing the metadata of the column specified by the column ordinal.

GetSqlMoney(Int32) GetSqlMoney(Int32) GetSqlMoney(Int32) GetSqlMoney(Int32)

获取序号所指定的列的值,其形式为 SqlMoneyGets the value for the column specified by the ordinal as a SqlMoney.

GetSqlSingle(Int32) GetSqlSingle(Int32) GetSqlSingle(Int32) GetSqlSingle(Int32)

获取序号所指定的列的值,其形式为 SqlSingleGets the value for the column specified by the ordinal as a SqlSingle.

GetSqlString(Int32) GetSqlString(Int32) GetSqlString(Int32) GetSqlString(Int32)

获取序号所指定的列的值,其形式为 SqlStringGets the value for the column specified by the ordinal as a SqlString.

GetSqlValue(Int32) GetSqlValue(Int32) GetSqlValue(Int32) GetSqlValue(Int32)

返回表示为 SQL Server 类型,由列序号指定的列中存储的数据值。Returns the data value stored in the column, expressed as a SQL Server type, specified by the column ordinal.

GetSqlValues(Object[]) GetSqlValues(Object[]) GetSqlValues(Object[]) GetSqlValues(Object[])

返回记录中所有列的值,这些值在数组中表示为 SQL Server 类型。Returns the values for all the columns in the record, expressed as SQL Server types, in an array.

GetSqlXml(Int32) GetSqlXml(Int32) GetSqlXml(Int32) GetSqlXml(Int32)

获取序号所指定的列的值,其形式为 SqlXmlGets the value for the column specified by the ordinal as a SqlXml.

GetString(Int32) GetString(Int32) GetString(Int32) GetString(Int32)

获取序号所指定的列的值,其形式为 StringGets the value for the column specified by the ordinal as a String.

GetTimeSpan(Int32) GetTimeSpan(Int32) GetTimeSpan(Int32) GetTimeSpan(Int32)

TimeSpan 的形式返回指定列的数据。Returns the specified column's data as a TimeSpan.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetValue(Int32) GetValue(Int32) GetValue(Int32) GetValue(Int32)

为顺序参数所指定的列,返回公共语言运行时 (CLR) 类型值。Returns the common language runtime (CLR) type value for the column specified by the ordinal argument.

GetValues(Object[]) GetValues(Object[]) GetValues(Object[]) GetValues(Object[])

返回记录中所有列的值,这些值在数组中表示为公共语言运行时 (CLR) 类型。Returns the values for all the columns in the record, expressed as common language runtime (CLR) types, in an array.

IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32)

如果列序号参数所指定的列为 null,则返回 true。Returns true if the column specified by the column ordinal parameter is null.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean)

将存储在列中的数据设置为指定的 Boolean 值。Sets the data stored in the column to the specified Boolean value.

SetByte(Int32, Byte) SetByte(Int32, Byte) SetByte(Int32, Byte) SetByte(Int32, Byte)

将存储在列中的数据设置为指定的 Byte 值。Sets the data stored in the column to the specified Byte value.

SetBytes(Int32, Int64, Byte[], Int32, Int32) SetBytes(Int32, Int64, Byte[], Int32, Int32) SetBytes(Int32, Int64, Byte[], Int32, Int32) SetBytes(Int32, Int64, Byte[], Int32, Int32)

将存储在列中的数据设置为指定的 Byte 值数组。Sets the data stored in the column to the specified array of Byte values.

SetChar(Int32, Char) SetChar(Int32, Char) SetChar(Int32, Char) SetChar(Int32, Char)

将存储在列中的数据设置为指定的 Char 值。Sets the data stored in the column to the specified Char value.

SetChars(Int32, Int64, Char[], Int32, Int32) SetChars(Int32, Int64, Char[], Int32, Int32) SetChars(Int32, Int64, Char[], Int32, Int32) SetChars(Int32, Int64, Char[], Int32, Int32)

将存储在列中的数据设置为指定的 Char 值数组。Sets the data stored in the column to the specified array of Char values.

SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime)

将存储在列中的数据设置为指定的 DateTime 值。Sets the data stored in the column to the specified DateTime value.

SetDateTimeOffset(Int32, DateTimeOffset) SetDateTimeOffset(Int32, DateTimeOffset) SetDateTimeOffset(Int32, DateTimeOffset) SetDateTimeOffset(Int32, DateTimeOffset)

设置为 DateTimeOffset 值指定的列的值。Sets the value of the column specified to the DateTimeOffset value.

SetDBNull(Int32) SetDBNull(Int32) SetDBNull(Int32) SetDBNull(Int32)

将指定列中的值设置为 DBNullSets the value in the specified column to DBNull.

SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal)

将存储在列中的数据设置为指定的 Decimal 值。Sets the data stored in the column to the specified Decimal value.

SetDouble(Int32, Double) SetDouble(Int32, Double) SetDouble(Int32, Double) SetDouble(Int32, Double)

将存储在列中的数据设置为指定的 Double 值。Sets the data stored in the column to the specified Double value.

SetFloat(Int32, Single) SetFloat(Int32, Single) SetFloat(Int32, Single) SetFloat(Int32, Single)

将存储在列中的数据设置为指定的 float 值。Sets the data stored in the column to the specified float value.

SetGuid(Int32, Guid) SetGuid(Int32, Guid) SetGuid(Int32, Guid) SetGuid(Int32, Guid)

将存储在列中的数据设置为指定的 Guid 值。Sets the data stored in the column to the specified Guid value.

SetInt16(Int32, Int16) SetInt16(Int32, Int16) SetInt16(Int32, Int16) SetInt16(Int32, Int16)

将存储在列中的数据设置为指定的 Int16 值。Sets the data stored in the column to the specified Int16 value.

SetInt32(Int32, Int32) SetInt32(Int32, Int32) SetInt32(Int32, Int32) SetInt32(Int32, Int32)

将存储在列中的数据设置为指定的 Int32 值。Sets the data stored in the column to the specified Int32 value.

SetInt64(Int32, Int64) SetInt64(Int32, Int64) SetInt64(Int32, Int64) SetInt64(Int32, Int64)

将存储在列中的数据设置为指定的 Int64 值。Sets the data stored in the column to the specified Int64 value.

SetSqlBinary(Int32, SqlBinary) SetSqlBinary(Int32, SqlBinary) SetSqlBinary(Int32, SqlBinary) SetSqlBinary(Int32, SqlBinary)

将存储在列中的数据设置为指定的 SqlBinary 值。Sets the data stored in the column to the specified SqlBinary value.

SetSqlBoolean(Int32, SqlBoolean) SetSqlBoolean(Int32, SqlBoolean) SetSqlBoolean(Int32, SqlBoolean) SetSqlBoolean(Int32, SqlBoolean)

将存储在列中的数据设置为指定的 SqlBoolean 值。Sets the data stored in the column to the specified SqlBoolean value.

SetSqlByte(Int32, SqlByte) SetSqlByte(Int32, SqlByte) SetSqlByte(Int32, SqlByte) SetSqlByte(Int32, SqlByte)

将存储在列中的数据设置为指定的 SqlByte 值。Sets the data stored in the column to the specified SqlByte value.

SetSqlBytes(Int32, SqlBytes) SetSqlBytes(Int32, SqlBytes) SetSqlBytes(Int32, SqlBytes) SetSqlBytes(Int32, SqlBytes)

将存储在列中的数据设置为指定的 SqlBytes 值。Sets the data stored in the column to the specified SqlBytes value.

SetSqlChars(Int32, SqlChars) SetSqlChars(Int32, SqlChars) SetSqlChars(Int32, SqlChars) SetSqlChars(Int32, SqlChars)

将存储在列中的数据设置为指定的 SqlChars 值。Sets the data stored in the column to the specified SqlChars value.

SetSqlDateTime(Int32, SqlDateTime) SetSqlDateTime(Int32, SqlDateTime) SetSqlDateTime(Int32, SqlDateTime) SetSqlDateTime(Int32, SqlDateTime)

将存储在列中的数据设置为指定的 SqlDateTime 值。Sets the data stored in the column to the specified SqlDateTime value.

SetSqlDecimal(Int32, SqlDecimal) SetSqlDecimal(Int32, SqlDecimal) SetSqlDecimal(Int32, SqlDecimal) SetSqlDecimal(Int32, SqlDecimal)

将存储在列中的数据设置为指定的 SqlDecimal 值。Sets the data stored in the column to the specified SqlDecimal value.

SetSqlDouble(Int32, SqlDouble) SetSqlDouble(Int32, SqlDouble) SetSqlDouble(Int32, SqlDouble) SetSqlDouble(Int32, SqlDouble)

将存储在列中的数据设置为指定的 SqlDouble 值。Sets the data stored in the column to the specified SqlDouble value.

SetSqlGuid(Int32, SqlGuid) SetSqlGuid(Int32, SqlGuid) SetSqlGuid(Int32, SqlGuid) SetSqlGuid(Int32, SqlGuid)

将存储在列中的数据设置为指定的 SqlGuid 值。Sets the data stored in the column to the specified SqlGuid value.

SetSqlInt16(Int32, SqlInt16) SetSqlInt16(Int32, SqlInt16) SetSqlInt16(Int32, SqlInt16) SetSqlInt16(Int32, SqlInt16)

将存储在列中的数据设置为指定的 SqlInt16 值。Sets the data stored in the column to the specified SqlInt16 value.

SetSqlInt32(Int32, SqlInt32) SetSqlInt32(Int32, SqlInt32) SetSqlInt32(Int32, SqlInt32) SetSqlInt32(Int32, SqlInt32)

将存储在列中的数据设置为指定的 SqlInt32 值。Sets the data stored in the column to the specified SqlInt32 value.

SetSqlInt64(Int32, SqlInt64) SetSqlInt64(Int32, SqlInt64) SetSqlInt64(Int32, SqlInt64) SetSqlInt64(Int32, SqlInt64)

将存储在列中的数据设置为指定的 SqlInt64 值。Sets the data stored in the column to the specified SqlInt64 value.

SetSqlMoney(Int32, SqlMoney) SetSqlMoney(Int32, SqlMoney) SetSqlMoney(Int32, SqlMoney) SetSqlMoney(Int32, SqlMoney)

将存储在列中的数据设置为指定的 SqlMoney 值。Sets the data stored in the column to the specified SqlMoney value.

SetSqlSingle(Int32, SqlSingle) SetSqlSingle(Int32, SqlSingle) SetSqlSingle(Int32, SqlSingle) SetSqlSingle(Int32, SqlSingle)

将存储在列中的数据设置为指定的 SqlSingle 值。Sets the data stored in the column to the specified SqlSingle value.

SetSqlString(Int32, SqlString) SetSqlString(Int32, SqlString) SetSqlString(Int32, SqlString) SetSqlString(Int32, SqlString)

将存储在列中的数据设置为指定的 SqlString 值。Sets the data stored in the column to the specified SqlString value.

SetSqlXml(Int32, SqlXml) SetSqlXml(Int32, SqlXml) SetSqlXml(Int32, SqlXml) SetSqlXml(Int32, SqlXml)

将存储在列中的数据设置为指定的 SqlXml 值。Sets the data stored in the column to the specified SqlXml value.

SetString(Int32, String) SetString(Int32, String) SetString(Int32, String) SetString(Int32, String)

将存储在列中的数据设置为指定的 String 值。Sets the data stored in the column to the specified String value.

SetTimeSpan(Int32, TimeSpan) SetTimeSpan(Int32, TimeSpan) SetTimeSpan(Int32, TimeSpan) SetTimeSpan(Int32, TimeSpan)

设置为 TimeSpan 指定的列的值。Sets the value of the column specified to the TimeSpan.

SetValue(Int32, Object) SetValue(Int32, Object) SetValue(Int32, Object) SetValue(Int32, Object)

为列序号指定的列设置新值,表示为公共语言运行时 (CLR) 类型。Sets a new value, expressed as a common language runtime (CLR) type, for the column specified by the column ordinal.

SetValues(Object[]) SetValues(Object[]) SetValues(Object[]) SetValues(Object[])

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

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32)

在此版本中不受支持。Not supported in this release.

适用于