DataTableReader DataTableReader DataTableReader DataTableReader Class

定義

DataTableReader 會以一或多個唯讀、順向結果集的形式,取得一或多個 DataTable 物件的內容。The DataTableReader obtains the contents of one or more DataTable objects in the form of one or more read-only, forward-only result sets.

public ref class DataTableReader sealed : System::Data::Common::DbDataReader
public sealed class DataTableReader : System.Data.Common.DbDataReader
type DataTableReader = class
    inherit DbDataReader
Public NotInheritable Class DataTableReader
Inherits DbDataReader
繼承

備註

DataTableReader運作方式與任何其他資料讀取器 (例如SqlDataReader) 很類似, 不同DataTableReader之處在于提供反覆運算中DataTable資料列的功能。The DataTableReader works much like any other data reader, such as the SqlDataReader, except that the DataTableReader provides for iterating over rows in a DataTable. 換句話說, 它提供逐一查看快取中的資料列。In other words, it provides for iterating over rows in a cache. 快取的資料可以在作用中DataTableReader時修改, 而讀取器會自動維護其位置。The cached data can be modified while the DataTableReader is active, and the reader automatically maintains its position.

當您DataTableReader DataTableReader從建立時DataTable , 所產生的物件會包含一個結果集, 且其資料與建立它的來源相同, 但已標示為已刪除的任何資料列除外。 DataTableWhen you create a DataTableReader from a DataTable, the resulting DataTableReader object contains one result set with the same data as the DataTable from which it was created, except for any rows that have been marked as deleted. 資料行會以與原始DataTable相同的順序出現。The columns appear in the same order as in the original DataTable. 傳回結果的結構與原始DataTable的架構和資料相同。The structure of the returned result is identical in schema and data to the original DataTable. CreateDataReader DataSet如果DataTableReader 包含一個以上的資料表,則呼叫物件的方法所建立的會包含多個結果集。DataSetA DataTableReader that was created by calling the CreateDataReader method of a DataSet object contains multiple result sets if the DataSet contains more than one table. 結果與DataTable DataTableCollection物件之DataSet中的物件順序相同。The results are in the same sequence as the DataTable objects in the DataTableCollection of the DataSet object.

傳回的結果集只包含目前的DataRow版本, 已略過標記為刪除的資料列。The returned result set contains only the current version of each DataRow; rows that are marked for deletion are skipped.

提供穩定的反覆運算器; 也就是說, 如果在反復專案期間DataTableReader修改基礎集合的大小, 的內容將不會無效。 DataTableReaderThe DataTableReader provides a stable iterator; that is, the contents of the DataTableReader are not invalidated if the size of the underlying collection is modified during iteration. 例如, 如果在反復專案期間刪除或移除Rows集合中的一個或多個資料列, 則DataTableReader中的目前位置會適當地維護, 而且不會使反覆運算器失效。For example, if one or more rows in the Rows collection are deleted or removed during iteration, the current position within the DataTableReader is maintained appropriately and it does not invalidate the iterator.

建構函式

DataTableReader(DataTable) DataTableReader(DataTable) DataTableReader(DataTable) DataTableReader(DataTable)

使用所提供之 DataTableReader 的資料,初始化 DataTable 類別的新執行個體。Initializes a new instance of the DataTableReader class by using data from the supplied DataTable.

DataTableReader(DataTable[]) DataTableReader(DataTable[]) DataTableReader(DataTable[]) DataTableReader(DataTable[])

使用 DataTableReader 物件所提供的陣列,初始化 DataTable 類別的新執行個體。Initializes a new instance of the DataTableReader class using the supplied array of DataTable objects.

屬性

Depth Depth Depth Depth

DataTableReader 目前資料列的巢狀深度。The depth of nesting for the current row of the DataTableReader.

FieldCount FieldCount FieldCount FieldCount

傳回目前資料列中的資料行數目。Returns the number of columns in the current row.

HasRows HasRows HasRows HasRows

取得值,指出 DataTableReader 是否包含一個或多個資料列。Gets a value that indicates whether the DataTableReader contains one or more rows.

IsClosed IsClosed IsClosed IsClosed

取得值,指出 DataTableReader 是否已關閉。Gets a value that indicates whether the DataTableReader is closed.

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

提供資料行序數,取得使用原生格式的指定資料行值。Gets the value of the specified column in its native format given the column ordinal.

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

提供資料行名稱,取得使用原生格式的指定資料行值。Gets the value of the specified column in its native format given the column name.

RecordsAffected RecordsAffected RecordsAffected RecordsAffected

取得透過執行 SQL 陳述式所插入、變更或刪除的資料列數目。Gets the number of rows inserted, changed, or deleted by execution of the SQL statement.

VisibleFieldCount VisibleFieldCount VisibleFieldCount VisibleFieldCount

取得 DbDataReader 中沒有隱藏的欄位數。Gets the number of fields in the DbDataReader that are not hidden.

(Inherited from DbDataReader)

方法

Close() Close() Close() Close()

關閉目前的 DataTableReaderCloses the current DataTableReader.

CloseAsync() CloseAsync() CloseAsync() CloseAsync()

非同步關閉 DbDataReader 物件。Asynchronously closes the DbDataReader object.

(Inherited from DbDataReader)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

釋放 DbDataReader 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the DbDataReader class.

(Inherited from DbDataReader)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 DbDataReader 使用的 Managed 資源,並選擇性釋放 Unmanaged 資源。Releases the managed resources used by the DbDataReader and optionally releases the unmanaged resources.

(Inherited from DbDataReader)
DisposeAsync() DisposeAsync() DisposeAsync() DisposeAsync()

以非同步方式將 DbDataReader 類別的目前執行個體所使用所有資源釋出。Asynchronously releases all resources used by the current instance of the DbDataReader class.

(Inherited from DbDataReader)
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 of the specified column as a Boolean.

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

取得指定資料行的值做為位元組。Gets the value of the specified column 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)

從指定的資料行位移開始,將位元組的資料流讀入緩衝區,做為從指定的緩衝區位移開始的陣列。Reads a stream of bytes starting at the specified column offset into the buffer as an array starting at the specified buffer offset.

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

取得指定資料行的值做為字元。Gets the value of the specified column as a character.

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

傳回指定資料行的值做為字元陣列。Returns the value of the specified column as a character array.

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

傳回所要求資料行的巢狀資料讀取器。Returns a nested data reader for the requested column.

(Inherited from DbDataReader)
GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32)

取得字串,表示指定之資料行的資料型別。Gets a string representing the data type of the specified column.

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

取得指定之資料行的值做為 DateTime 物件。Gets the value of the specified column as a DateTime object.

GetDbDataReader(Int32) GetDbDataReader(Int32) GetDbDataReader(Int32) GetDbDataReader(Int32)

傳回所要求資料行序數的 DbDataReader 物件,可使用提供者特定的實作 (Implementation) 覆寫。Returns a DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation.

(Inherited from DbDataReader)
GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32)

取得指定的資料行值做為 DecimalGets the value of the specified column as a Decimal.

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

取得資料行的值做為雙精確度浮點數。Gets the value of the column as a double-precision floating point number.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回可用來逐一查看項目集合的列舉值。Returns an enumerator that can be used to iterate through the item collection.

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

取得 Type,即是物件的資料型別。Gets the Type that is the data type of the object.

GetFieldValue<T>(Int32) GetFieldValue<T>(Int32) GetFieldValue<T>(Int32) GetFieldValue<T>(Int32)

取得所指定資料行值作為要求類型。Gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32)

以非同步方式取得所指定資料行的值作為要求類型。Asynchronously gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken)

以非同步方式取得所指定資料行的值作為要求類型。Asynchronously gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFloat(Int32) GetFloat(Int32) GetFloat(Int32) GetFloat(Int32)

取得指定資料行的值做為單精確度浮點數。Gets the value of the specified column as a single-precision floating point number.

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

取得指定資料行的值做為全域唯一識別項 (GUID)。Gets the value of the specified column as a globally-unique identifier (GUID).

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

做為預設雜湊函式。Serves as the default hash function.

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

取得指定資料行的值做為 16 位元帶正負號的整數。Gets the value of the specified column as a 16-bit signed integer.

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

取得指定資料行的值作為 32 位元帶正負號的整數。Gets the value of the specified column as a 32-bit signed integer.

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

取得指定資料行的值做為 64 位元帶正負號的整數 (Signed Integer)。Gets the value of the specified column as a 64-bit signed integer.

GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetName(Int32) GetName(Int32) GetName(Int32) GetName(Int32)

取得指定的資料行值做為 StringGets the value of the specified column as a String.

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

提供資料行的名稱,取得資料行序數。Gets the column ordinal, given the name of the column.

GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32)

以提供者專屬格式,取得指定之資料行的型別。Gets the type of the specified column in provider-specific format.

GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32)

以提供者專屬格式,取得指定之資料行的值。Gets the value of the specified column in provider-specific format.

GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[])

DataTableReader 中所有資料行的提供者專屬型別資訊,填入所提供的陣列。Fills the supplied array with provider-specific type information for all the columns in the DataTableReader.

GetSchemaTable() GetSchemaTable() GetSchemaTable() GetSchemaTable()

傳回 DataTable,以描述 DataTableReader 的資料行中繼資料。Returns a DataTable that describes the column metadata of the DataTableReader.

GetStream(Int32) GetStream(Int32) GetStream(Int32) GetStream(Int32)

取得資料流以從指定的資料行擷取資料。Gets a stream to retrieve data from the specified column.

(Inherited from DbDataReader)
GetString(Int32) GetString(Int32) GetString(Int32) GetString(Int32)

取得指定的資料行值做為字串。Gets the value of the specified column as a string.

GetTextReader(Int32) GetTextReader(Int32) GetTextReader(Int32) GetTextReader(Int32)

取得文字讀取器以從資料行擷取資料。Gets a text reader to retrieve data from the column.

(Inherited from DbDataReader)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

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

取得使用原生格式的指定資料行值。Gets the value of the specified column in its native format.

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

使用目前資料列的資料行值填入物件陣列。Populates an array of objects with the column values of the current row.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32)

取得值,指出資料行是否含有不存在或遺漏的值。Gets a value that indicates whether the column contains non-existent or missing values.

IsDBNullAsync(Int32) IsDBNullAsync(Int32) IsDBNullAsync(Int32) IsDBNullAsync(Int32)

以非同步方式取得值,指出資料行是否包含不存在或遺漏的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

(Inherited from DbDataReader)
IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken)

以非同步方式取得值,指出資料行是否包含不存在或遺漏的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

(Inherited from DbDataReader)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NextResult() NextResult() NextResult() NextResult()

DataTableReader 前移到下一個結果集 (如果有的話)。Advances the DataTableReader to the next result set, if any.

NextResultAsync() NextResultAsync() NextResultAsync() NextResultAsync()

在讀取陳述式批次的結果時,以非同步方式將讀取器向前移到下一個結果。Asynchronously advances the reader to the next result when reading the results of a batch of statements.

(Inherited from DbDataReader)
NextResultAsync(CancellationToken) NextResultAsync(CancellationToken) NextResultAsync(CancellationToken) NextResultAsync(CancellationToken)

在讀取陳述式批次的結果時,以非同步方式將讀取器向前移到下一個結果。Asynchronously advances the reader to the next result when reading the results of a batch of statements.

(Inherited from DbDataReader)
Read() Read() Read() Read()

DataTableReader 推進到下一筆記錄。Advances the DataTableReader to the next record.

ReadAsync() ReadAsync() ReadAsync() ReadAsync()

以非同步方式將讀取器向前移到結果集中的下一筆記錄。Asynchronously advances the reader to the next record in a result set.

(Inherited from DbDataReader)
ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken)

以非同步方式將讀取器向前移到結果集中的下一筆記錄。Asynchronously advances the reader to the next record in a result set.

(Inherited from DbDataReader)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

IDataReader.Close() IDataReader.Close() IDataReader.Close() IDataReader.Close()

如需這個成員的說明,請參閱 Close()For a description of this member, see Close().

(Inherited from DbDataReader)
IDataReader.GetSchemaTable() IDataReader.GetSchemaTable() IDataReader.GetSchemaTable() IDataReader.GetSchemaTable()

如需這個成員的說明,請參閱 GetSchemaTable()For a description of this member, see GetSchemaTable().

(Inherited from DbDataReader)
IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32)

如需這個成員的說明,請參閱 GetData(Int32)For a description of this member, see GetData(Int32).

(Inherited from DbDataReader)

擴充方法

CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader)

取得值,指出 DbDataReader 是否可取得資料行結構描述。Gets a value that indicates whether a DbDataReader can get a column schema.

GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader)

取得 DbDataReader 的資料行結構描述 (DbColumn 集合)。Gets the column schema (DbColumn collection) for a DbDataReader.

GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String)

取得指定之資料行的值做為布林值 (Boolean)。Gets the value of the specified column as a Boolean.

GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String)

取得指定資料行的值做為位元組。Gets the value of the specified column as a byte.

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

從起始於所指定索引的指定資料行讀取所指定位元組數,並將其寫入至起始於緩衝區中指定位置的緩衝區。Reads a specified number of bytes from the specified column starting at a specified index and writes them to a buffer starting at a specified position in the buffer.

GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String)

取得指定的資料行值做為單一字元。Gets the value of the specified column as a single character.

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

從起始於所指定索引的指定資料行讀取指定的字元數,並將其寫入至起始於指定位置的緩衝區。Reads a specified number of characters from a specified column starting at a specified index, and writes them to a buffer starting at a specified position.

GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String)

傳回所要求資料行的巢狀資料讀取器。Returns a nested data reader for the requested column.

GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String)

取得指定資料行的資料類型名稱。Gets name of the data type of the specified column.

GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String)

取得指定之資料行的值做為 DateTime 物件。Gets the value of the specified column as a DateTime object.

GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String)

取得指定的資料行值做為 DecimalGets the value of the specified column as a Decimal.

GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String)

取得指定資料行的值做為雙精確度浮點數。Gets the value of the specified column as a double-precision floating point number.

GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String)

取得指定資料行的資料類型。Gets the data type of the specified column.

GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String)

取得所指定資料行值作為要求類型。Gets the value of the specified column as the requested type.

GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken)

以非同步方式取得所指定資料行的值作為要求類型。Asynchronously gets the value of the specified column as the requested type.

GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String)

取得指定資料行的值做為單精確度浮點數。Gets the value of the specified column as a single-precision floating point number.

GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String)

取得指定資料行的值做為全域唯一識別項 (GUID)。Gets the value of the specified column as a globally unique identifier (GUID).

GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String)

取得指定資料行的值做為 16 位元帶正負號的整數。Gets the value of the specified column as a 16-bit signed integer.

GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String)

取得指定資料行的值作為 32 位元帶正負號的整數。Gets the value of the specified column as a 32-bit signed integer.

GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String)

取得指定資料行的值做為 64 位元帶正負號的整數 (Signed Integer)。Gets the value of the specified column as a 64-bit signed integer.

GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String)

取得指定資料行的提供者特定類型。Gets the provider-specific type of the specified column.

GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String)

取得所指定資料行值作為提供者特定類型的執行個體。Gets the value of the specified column as an instance of a provider-specific type.

GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String)

取得資料流以從指定的資料行擷取資料。Gets a stream to retrieve data from the specified column.

GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String)

取得指定之資料行的值做為 String 的執行個體。Gets the value of the specified column as an instance of String.

GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String)

取得文字讀取器以從資料行擷取資料。Gets a text reader to retrieve data from the column.

GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String)

取得指定之資料行的值做為 Object 的執行個體。Gets the value of the specified column as an instance of Object.

IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String)

取得值,這個值表示資料行是否包含不存在或遺漏的值。Gets a value that indicates whether the column contains nonexistent or missing values.

IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken)

以非同步方式取得值,指出資料行是否包含不存在或遺漏的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於