Επεξεργασία

Κοινή χρήση μέσω


DbDataRecord Class

Definition

Implements IDataRecord and ICustomTypeDescriptor, and provides data binding support for DbEnumerator.

public ref class DbDataRecord abstract : System::ComponentModel::ICustomTypeDescriptor, System::Data::IDataRecord
public ref class DbDataRecord abstract : System::Data::IDataRecord
public ref class DbDataRecord : System::ComponentModel::ICustomTypeDescriptor, System::Data::IDataRecord
public abstract class DbDataRecord : System.ComponentModel.ICustomTypeDescriptor, System.Data.IDataRecord
public abstract class DbDataRecord : System.Data.IDataRecord
public class DbDataRecord : System.ComponentModel.ICustomTypeDescriptor, System.Data.IDataRecord
type DbDataRecord = class
    interface ICustomTypeDescriptor
    interface IDataRecord
type DbDataRecord = class
    interface IDataRecord
type DbDataRecord = class
    interface IDataRecord
    interface ICustomTypeDescriptor
Public MustInherit Class DbDataRecord
Implements ICustomTypeDescriptor, IDataRecord
Public MustInherit Class DbDataRecord
Implements IDataRecord
Public Class DbDataRecord
Implements ICustomTypeDescriptor, IDataRecord
Inheritance
DbDataRecord
Derived
Implements

Constructors

DbDataRecord()

Initializes a new instance of the DbDataRecord class.

Properties

FieldCount

Indicates the number of fields within the current record. This property is read-only.

Item[Int32]

Indicates the value at the specified column in its native format given the column ordinal. This property is read-only.

Item[String]

Indicates the value at the specified column in its native format given the column name. This property is read-only.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBoolean(Int32)

Returns the value of the specified column as a Boolean.

GetByte(Int32)

Returns the value of the specified column as a byte.

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

Returns the value of the specified column as a byte array.

GetChar(Int32)

Returns the value of the specified column as a character.

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

Returns the value of the specified column as a character array.

GetData(Int32)

Not currently supported.

GetDataTypeName(Int32)

Returns the name of the back-end data type.

GetDateTime(Int32)

Returns the value of the specified column as a DateTime object.

GetDbDataReader(Int32)

Returns a DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation.

GetDecimal(Int32)

Returns the value of the specified column as a Decimal object.

GetDouble(Int32)

Returns the value of the specified column as a double-precision floating-point number.

GetFieldType(Int32)

Returns the Type that is the data type of the object.

GetFloat(Int32)

Returns the value of the specified column as a single-precision floating-point number.

GetGuid(Int32)

Returns the GUID value of the specified field.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetInt16(Int32)

Returns the value of the specified column as a 16-bit signed integer.

GetInt32(Int32)

Returns the value of the specified column as a 32-bit signed integer.

GetInt64(Int32)

Returns the value of the specified column as a 64-bit signed integer.

GetName(Int32)

Returns the name of the specified column.

GetOrdinal(String)

Returns the column ordinal, given the name of the column.

GetString(Int32)

Returns the value of the specified column as a string.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValue(Int32)

Returns the value at the specified column in its native format.

GetValues(Object[])

Populates an array of objects with the column values of the current record.

IsDBNull(Int32)

Used to indicate nonexistent values.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICustomTypeDescriptor.GetAttributes()

Returns a collection of custom attributes for this instance of a component.

ICustomTypeDescriptor.GetClassName()

Returns the class name of this instance of a component.

ICustomTypeDescriptor.GetComponentName()

Returns the name of this instance of a component.

ICustomTypeDescriptor.GetConverter()

Returns a type converter for this instance of a component.

ICustomTypeDescriptor.GetDefaultEvent()

Returns the default event for this instance of a component.

ICustomTypeDescriptor.GetDefaultProperty()

Returns the default property for this instance of a component.

ICustomTypeDescriptor.GetEditor(Type)

Returns an editor of the specified type for this instance of a component.

ICustomTypeDescriptor.GetEvents()

Returns the events for this instance of a component.

ICustomTypeDescriptor.GetEvents(Attribute[])

Returns the events for this instance of a component using the specified attribute array as a filter.

ICustomTypeDescriptor.GetProperties()

Returns the properties for this instance of a component.

ICustomTypeDescriptor.GetProperties(Attribute[])

Returns the properties for this instance of a component using the attribute array as a filter.

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

Returns an object that contains the property described by the specified property descriptor.

Applies to

See also