DbDataRecord 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作 IDataRecord 和 ICustomTypeDescriptor,並為 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
- 繼承
-
DbDataRecord
- 衍生
- 實作
建構函式
| 名稱 | Description |
|---|---|
| DbDataRecord() |
初始化 DbDataRecord 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| FieldCount |
指出目前記錄內的欄位數目。 這個屬性是唯讀的。 |
| Item[Int32] |
指定資料行序數,以其原生格式傳回指定資料行的值。 這個屬性是唯讀的。 |
| Item[String] |
指定資料行名稱,以其原生格式傳回指定資料行的值。 這個屬性是唯讀的。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetBoolean(Int32) |
傳回指定資料行的值做為布林值。 |
| GetByte(Int32) |
傳回指定資料行的值做為位元組。 |
| GetBytes(Int32, Int64, Byte[], Int32, Int32) |
傳回指定資料行的值做為位元組陣列。 |
| GetChar(Int32) |
傳回指定資料行的值做為字元。 |
| GetChars(Int32, Int64, Char[], Int32, Int32) |
傳回指定資料行的值做為字元陣列。 |
| GetData(Int32) |
目前不支援。 |
| GetDataTypeName(Int32) |
傳回後端資料類型的名稱。 |
| GetDateTime(Int32) |
傳回指定資料行的值做為 DateTime 物件。 |
| GetDbDataReader(Int32) |
傳回所要求資料行序數的 DbDataReader 物件,可使用提供者特定的實作 (Implementation) 覆寫。 |
| GetDecimal(Int32) |
傳回指定資料行的值做為 Decimal 物件。 |
| GetDouble(Int32) |
傳回指定資料行的值做為雙精確度浮點數。 |
| GetFieldType(Int32) |
傳回 Type,此為物件的資料類型。 |
| GetFloat(Int32) |
傳回指定資料行的值做為單精確度浮點數。 |
| GetGuid(Int32) |
傳回指定欄位的 GUID 值。 |
| GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
| GetInt16(Int32) |
傳回指定資料行的值做為 16 位元帶正負號的整數。 |
| GetInt32(Int32) |
傳回指定資料行的值做為 32 位元帶正負號的整數。 |
| GetInt64(Int32) |
傳回指定資料行的值做為 64 位元帶正負號的整數。 |
| GetName(Int32) |
傳回指定之資料行的名稱。 |
| GetOrdinal(String) |
指定資料行的名稱,傳回資料行序數。 |
| GetString(Int32) |
傳回指定資料行的值做為字串。 |
| GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
| GetValue(Int32) |
以其原生格式傳回指定資料行的值。 |
| GetValues(Object[]) |
使用目前記錄的資料行值填入物件的陣列。 |
| IsDBNull(Int32) |
用來表示不存在的值。 |
| MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
| ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
明確介面實作
| 名稱 | Description |
|---|---|
| ICustomTypeDescriptor.GetAttributes() |
傳回元件之這個執行個體的自訂屬性集合。 |
| ICustomTypeDescriptor.GetClassName() |
傳回這個元件執行個體的類別名稱。 |
| ICustomTypeDescriptor.GetComponentName() |
傳回這個元件執行個體的名稱。 |
| ICustomTypeDescriptor.GetConverter() |
傳回這個元件執行個體的類型轉換子。 |
| ICustomTypeDescriptor.GetDefaultEvent() |
傳回這個元件執行個體的預設事件。 |
| ICustomTypeDescriptor.GetDefaultProperty() |
傳回這個元件執行個體的屬性。 |
| ICustomTypeDescriptor.GetEditor(Type) |
傳回元件的這個執行個體之指定類型編輯器。 |
| ICustomTypeDescriptor.GetEvents() |
傳回這個元件執行個體的事件。 |
| ICustomTypeDescriptor.GetEvents(Attribute[]) |
使用指定屬性陣列做為篩選條件傳回元件之執行個體的事件。 |
| ICustomTypeDescriptor.GetProperties() |
傳回元件之這個執行個體的屬性。 |
| ICustomTypeDescriptor.GetProperties(Attribute[]) |
使用屬性陣列做為篩選條件,傳回這個元件執行個體的屬性。 |
| ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) |
傳回物件,包含指定的屬性描述項所描述的屬性。 |
適用於
另請參閱
- ADO.NET 概觀 \(部分機器翻譯\)