TypedTableBase<T> 類別

定義

這個類型在 Visual Studio 和 XSD.exe .NET Framework 工具產生 DataTable 型物件時使用作為基底類別,不能直接從程式碼使用。This type is used as a base class for typed-DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool, and is not intended to be used directly from your code.

generic <typename T>
 where T : DataRowpublic ref class TypedTableBase abstract : System::Data::DataTable, System::Collections::Generic::IEnumerable<T>
public abstract class TypedTableBase<T> : System.Data.DataTable, System.Collections.Generic.IEnumerable<T> where T : DataRow
[System.Serializable]
public abstract class TypedTableBase<T> : System.Data.DataTable, System.Collections.Generic.IEnumerable<T> where T : DataRow
type TypedTableBase<'T (requires 'T :> DataRow)> = class
    inherit DataTable
    interface seq<'T (requires 'T :> DataRow)>
    interface IEnumerable
[<System.Serializable>]
type TypedTableBase<'T (requires 'T :> DataRow)> = class
    inherit DataTable
    interface seq<'T (requires 'T :> DataRow)>
    interface IEnumerable
Public MustInherit Class TypedTableBase(Of T)
Inherits DataTable
Implements IEnumerable(Of T)

類型參數

T

資料表代表之來源序列中的物件類型,通常是 DataRowThe type of objects in the source sequence represented by the table, typically DataRow.

繼承
屬性
實作

建構函式

TypedTableBase<T>()

初始化新的 TypedTableBase<T>Initializes a new TypedTableBase<T>. 這個方法支援 Visual Studio 和 XSD.exe .NET Framework 工具產生的具型別 DataTable 物件。This method supports typed-DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. 這個型別並不適合直接從您的程式碼使用。This type is not intended to be used directly from your code.

TypedTableBase<T>(SerializationInfo, StreamingContext)

初始化新的 TypedTableBase<T>Initializes a new TypedTableBase<T>. 這個方法支援 Visual Studio 和 XSD.exe .NET Framework 工具產生的具型別 DataTable 物件。This method supports typed-DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. 這個方法不能從程式碼直接使用。This method is not intended to be used directly from your code.

欄位

fInitInProgress

檢查初始化是否仍在進行中。Checks whether initialization is in progress. 初始化發生於執行階段。The initialization occurs at run time.

(繼承來源 DataTable)

屬性

CaseSensitive

指示字串比較在資料表中是否區分大小寫。Indicates whether string comparisons within the table are case-sensitive.

(繼承來源 DataTable)
ChildRelations

為這個 DataTable 取得子關聯的集合。Gets the collection of child relations for this DataTable.

(繼承來源 DataTable)
Columns

取得屬於這個資料表的資料行集合。Gets the collection of columns that belong to this table.

(繼承來源 DataTable)
Constraints

取得這個資料表所維護的條件約束 (Constraint) 集合。Gets the collection of constraints maintained by this table.

(繼承來源 DataTable)
Container

取得元件的容器。Gets the container for the component.

(繼承來源 MarshalByValueComponent)
DataSet

取得這個資料表所屬的 DataSetGets the DataSet to which this table belongs.

(繼承來源 DataTable)
DefaultView

取得可能含有已篩選檢視表或游標位置的資料表自訂檢視表。Gets a customized view of the table that may include a filtered view, or a cursor position.

(繼承來源 DataTable)
DesignMode

取得值,表示元件目前是否處於設計模式。Gets a value indicating whether the component is currently in design mode.

(繼承來源 MarshalByValueComponent)
DisplayExpression

取得或設定會傳回用來在使用者介面中表示這個資料表之值的運算式。Gets or sets the expression that returns a value used to represent this table in the user interface. DisplayExpression 屬性可讓您將這個資料表的名稱顯示在使用者介面中。The DisplayExpression property lets you display the name of this table in a user interface.

(繼承來源 DataTable)
Events

取得附加在這個元件上的事件處理常式清單。Gets the list of event handlers that are attached to this component.

(繼承來源 MarshalByValueComponent)
ExtendedProperties

取得自訂使用者資訊的集合。Gets the collection of customized user information.

(繼承來源 DataTable)
HasErrors

取得值,指出資料表所屬 DataSet 的任何資料表中的任何資料列是否存在錯誤。Gets a value indicating whether there are errors in any of the rows in any of the tables of the DataSet to which the table belongs.

(繼承來源 DataTable)
IsInitialized

取得值,指出 DataTable 是否已初始化。Gets a value that indicates whether the DataTable is initialized.

(繼承來源 DataTable)
Locale

取得或設定用來在資料表中比較字串的地區設定 (Locale) 資訊。Gets or sets the locale information used to compare strings within the table.

(繼承來源 DataTable)
MinimumCapacity

取得或設定這個資料表的初始開始大小。Gets or sets the initial starting size for this table.

(繼承來源 DataTable)
Namespace

為在 DataTable 中所儲存資料的 XML 表示取得或設定命名空間。Gets or sets the namespace for the XML representation of the data stored in the DataTable.

(繼承來源 DataTable)
ParentRelations

為這個 DataTable 取得父關聯的集合。Gets the collection of parent relations for this DataTable.

(繼承來源 DataTable)
Prefix

為在 DataTable 中所儲存資料的 XML 表示取得或設定命名空間。Gets or sets the namespace for the XML representation of the data stored in the DataTable.

(繼承來源 DataTable)
PrimaryKey

取得或設定資料行的陣列,這些資料行是做為資料表 (Data Table) 之主索引鍵。Gets or sets an array of columns that function as primary keys for the data table.

(繼承來源 DataTable)
RemotingFormat

取得或設定序列化格式。Gets or sets the serialization format.

(繼承來源 DataTable)
Rows

取得屬於這個資料表的資料列集合。Gets the collection of rows that belong to this table.

(繼承來源 DataTable)
Site

取得或設定 ISiteDataTableGets or sets an ISite for the DataTable.

(繼承來源 DataTable)
TableName

取得或設定 DataTable 的名稱。Gets or sets the name of the DataTable.

(繼承來源 DataTable)

方法

AcceptChanges()

認可自前一次呼叫 AcceptChanges() 以來對這個資料表所做的所有變更。Commits all the changes made to this table since the last time AcceptChanges() was called.

(繼承來源 DataTable)
BeginInit()

開始對表單或另一個元件所使用的 DataTable 進行初始化作業。Begins the initialization of a DataTable that is used on a form or used by another component. 初始化發生於執行階段。The initialization occurs at run time.

(繼承來源 DataTable)
BeginLoadData()

載入資料時關閉告知、索引維護和條件約束。Turns off notifications, index maintenance, and constraints while loading data.

(繼承來源 DataTable)
Cast<TResult>()

TypedTableBase<T> 的項目轉換為指定的型別。Converts the elements of an TypedTableBase<T> to the specified type. 這個方法支援 Visual Studio 和 XSD.exe .NET Framework 工具產生的具型別 DataTable 物件。This method supports typed DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. 這個方法不能從程式碼直接使用。This method is not intended to be used directly from your code.

Clear()

清除所有資料的 DataTableClears the DataTable of all data.

(繼承來源 DataTable)
Clone()

複製 (Clone) DataTable 的結構,包括所有 DataTable 結構描述和條件約束。Clones the structure of the DataTable, including all DataTable schemas and constraints.

(繼承來源 DataTable)
Compute(String, String)

計算在傳遞篩選準則的目前資料列上的指定運算式。Computes the given expression on the current rows that pass the filter criteria.

(繼承來源 DataTable)
Copy()

複製這個 DataTable 的結構和資料。Copies both the structure and data for this DataTable.

(繼承來源 DataTable)
CreateDataReader()

傳回對應於這個 DataTableReader 之中資料的 DataTableReturns a DataTableReader corresponding to the data within this DataTable.

(繼承來源 DataTable)
CreateInstance()

建立 DataTable 的新執行個體。Creates a new instance of DataTable.

(繼承來源 DataTable)
Dispose()

釋放 MarshalByValueComponent 所使用的所有資源。Releases all resources used by the MarshalByValueComponent.

(繼承來源 MarshalByValueComponent)
Dispose(Boolean)

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

(繼承來源 MarshalByValueComponent)
EndInit()

結束對表單或另一個元件所使用的 DataTable 進行初始化作業。Ends the initialization of a DataTable that is used on a form or used by another component. 初始化發生於執行階段。The initialization occurs at run time.

(繼承來源 DataTable)
EndLoadData()

載入資料後開啟告知、索引維護和條件約束。Turns on notifications, index maintenance, and constraints after loading data.

(繼承來源 DataTable)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetChanges()

取得 DataTable (包含從載入它或前一次呼叫 AcceptChanges() 以來所做的所有變更) 的複本。Gets a copy of the DataTable that contains all changes made to it since it was loaded or AcceptChanges() was last called.

(繼承來源 DataTable)
GetChanges(DataRowState)

取得 DataTable (包含從前一次載入它或呼叫 AcceptChanges() 以來所做的所有變更) 的複本 (由 DataRowState 篩選)。Gets a copy of the DataTable containing all changes made to it since it was last loaded, or since AcceptChanges() was called, filtered by DataRowState.

(繼承來源 DataTable)
GetEnumerator()

傳回 DataRow 型別的列舉程式。Returns an enumerator for the typed-DataRow. 這個方法支援 Visual Studio 和 XSD.exe .NET Framework 工具產生的具型別 DataTable 物件。This method supports typed-DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. 這個方法不能從程式碼直接使用。This method is not intended to be used directly from your code.

GetErrors()

取得包含錯誤之 DataRow 物件的陣列。Gets an array of DataRow objects that contain errors.

(繼承來源 DataTable)
GetHashCode()

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

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

以序列化 DataTable 所需的資料,填入序列化資訊物件。Populates a serialization information object with the data needed to serialize the DataTable.

(繼承來源 DataTable)
GetRowType()

取得資料列型別。Gets the row type.

(繼承來源 DataTable)
GetSchema()

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

(繼承來源 DataTable)
GetService(Type)

取得 IServiceProvider 的實作器。Gets the implementer of the IServiceProvider.

(繼承來源 MarshalByValueComponent)
GetType()

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

(繼承來源 Object)
ImportRow(DataRow)

DataRow 複製至 DataTable,保留任何屬性設定,以及原始值和目前值。Copies a DataRow into a DataTable, preserving any property settings, as well as original and current values.

(繼承來源 DataTable)
Load(IDataReader)

使用所提供的 DataTable,用資料來源的值填滿 IDataReaderFills a DataTable with values from a data source using the supplied IDataReader. 如果 DataTable 已經包含資料列,從資料來源傳入的資料會與現有的資料列合併。If the DataTable already contains rows, the incoming data from the data source is merged with the existing rows.

(繼承來源 DataTable)
Load(IDataReader, LoadOption)

使用所提供的 DataTable,用資料來源的值填滿 IDataReaderFills a DataTable with values from a data source using the supplied IDataReader. 如果 DataTable 已經包含資料列,從資料來源傳入的資料會根據 loadOption 參數的值,與現有的資料列合併。If the DataTable already contains rows, the incoming data from the data source is merged with the existing rows according to the value of the loadOption parameter.

(繼承來源 DataTable)
Load(IDataReader, LoadOption, FillErrorEventHandler)

使用所提供的 DataTable,以資料來源的值填滿 IDataReader,使用錯誤處理委派。Fills a DataTable with values from a data source using the supplied IDataReader using an error-handling delegate.

(繼承來源 DataTable)
LoadDataRow(Object[], Boolean)

尋找並更新特定資料列。Finds and updates a specific row. 如果找不到符合的資料列,則使用指定值來建立新的資料列。If no matching row is found, a new row is created using the given values.

(繼承來源 DataTable)
LoadDataRow(Object[], LoadOption)

尋找並更新特定資料列。Finds and updates a specific row. 如果找不到符合的資料列,則使用指定值來建立新的資料列。If no matching row is found, a new row is created using the given values.

(繼承來源 DataTable)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Merge(DataTable)

將指定的 DataTable 與目前的 DataTable 合併。Merge the specified DataTable with the current DataTable.

(繼承來源 DataTable)
Merge(DataTable, Boolean)

合併指定的 DataTable 與目前的 DataTable,指出是否保留目前 DataTable 中的變更。Merge the specified DataTable with the current DataTable, indicating whether to preserve changes in the current DataTable.

(繼承來源 DataTable)
Merge(DataTable, Boolean, MissingSchemaAction)

合併指定的 DataTable 與目前的 DataTable,指出是否保留變更,以及如何處理目前在 DataTable 中缺少的結構描述。Merge the specified DataTable with the current DataTable, indicating whether to preserve changes and how to handle missing schema in the current DataTable.

(繼承來源 DataTable)
NewRow()

使用與資料表相同的結構描述來建立新的 DataRowCreates a new DataRow with the same schema as the table.

(繼承來源 DataTable)
NewRowArray(Int32)

傳回 DataRow 的陣列。Returns an array of DataRow.

(繼承來源 DataTable)
NewRowFromBuilder(DataRowBuilder)

從現有的資料列建立新的資料列。Creates a new row from an existing row.

(繼承來源 DataTable)
OnColumnChanged(DataColumnChangeEventArgs)

引發 ColumnChanged 事件。Raises the ColumnChanged event.

(繼承來源 DataTable)
OnColumnChanging(DataColumnChangeEventArgs)

引發 ColumnChanging 事件。Raises the ColumnChanging event.

(繼承來源 DataTable)
OnPropertyChanging(PropertyChangedEventArgs)

引發 PropertyChanged 事件。Raises the PropertyChanged event.

(繼承來源 DataTable)
OnRemoveColumn(DataColumn)

DataTable 通知 DataColumn 正在移除。Notifies the DataTable that a DataColumn is being removed.

(繼承來源 DataTable)
OnRowChanged(DataRowChangeEventArgs)

引發 RowChanged 事件。Raises the RowChanged event.

(繼承來源 DataTable)
OnRowChanging(DataRowChangeEventArgs)

引發 RowChanging 事件。Raises the RowChanging event.

(繼承來源 DataTable)
OnRowDeleted(DataRowChangeEventArgs)

引發 RowDeleted 事件。Raises the RowDeleted event.

(繼承來源 DataTable)
OnRowDeleting(DataRowChangeEventArgs)

引發 RowDeleting 事件。Raises the RowDeleting event.

(繼承來源 DataTable)
OnTableCleared(DataTableClearEventArgs)

引發 TableCleared 事件。Raises the TableCleared event.

(繼承來源 DataTable)
OnTableClearing(DataTableClearEventArgs)

引發 TableClearing 事件。Raises the TableClearing event.

(繼承來源 DataTable)
OnTableNewRow(DataTableNewRowEventArgs)

引發 TableNewRow 事件。Raises the TableNewRow event.

(繼承來源 DataTable)
ReadXml(Stream)

使用指定的 DataTable,將 XML 結構描述和資料讀入 StreamReads XML schema and data into the DataTable using the specified Stream.

(繼承來源 DataTable)
ReadXml(String)

將 XML 結構描述和資料從指定的檔案讀入 DataTableReads XML schema and data into the DataTable from the specified file.

(繼承來源 DataTable)
ReadXml(TextReader)

使用指定的 DataTable,將 XML 結構描述和資料讀入 TextReaderReads XML schema and data into the DataTable using the specified TextReader.

(繼承來源 DataTable)
ReadXml(XmlReader)

使用指定的 DataTable,將 XML 結構描述和資料讀入 XmlReaderReads XML Schema and Data into the DataTable using the specified XmlReader.

(繼承來源 DataTable)
ReadXmlSchema(Stream)

使用指定的資料流,將 XML 結構描述讀入 DataTableReads an XML schema into the DataTable using the specified stream.

(繼承來源 DataTable)
ReadXmlSchema(String)

從指定的檔案,將 XML 結構描述讀入 DataTableReads an XML schema into the DataTable from the specified file.

(繼承來源 DataTable)
ReadXmlSchema(TextReader)

使用指定的 DataTable,將 XML 結構描述讀入 TextReaderReads an XML schema into the DataTable using the specified TextReader.

(繼承來源 DataTable)
ReadXmlSchema(XmlReader)

使用指定的 DataTable,將 XML 結構描述讀入 XmlReaderReads an XML schema into the DataTable using the specified XmlReader.

(繼承來源 DataTable)
ReadXmlSerializable(XmlReader)

從 XML 資料流讀取。Reads from an XML stream.

(繼承來源 DataTable)
RejectChanges()

復原從資料表載入以來,或前一次呼叫 AcceptChanges() 以來,對該資料表所做的所有變更。Rolls back all changes that have been made to the table since it was loaded, or the last time AcceptChanges() was called.

(繼承來源 DataTable)
Reset()

重設 DataTable 為它的原始狀態。Resets the DataTable to its original state. 重設會移除資料表的所有資料、索引、關聯和資料行。Reset removes all data, indexes, relations, and columns of the table. 如果資料集包含 DataTable,則重設資料表之後,資料表仍將是資料集的一部分。If a DataSet includes a DataTable, the table will still be part of the DataSet after the table is reset.

(繼承來源 DataTable)
Select()

取得所有 DataRow 物件的陣列。Gets an array of all DataRow objects.

(繼承來源 DataTable)
Select(String)

取得所有符合篩選準則之 DataRow 物件的陣列。Gets an array of all DataRow objects that match the filter criteria.

(繼承來源 DataTable)
Select(String, String)

取得按照指定排序順序符合篩選條件的所有 DataRow 物件之陣列。Gets an array of all DataRow objects that match the filter criteria, in the specified sort order.

(繼承來源 DataTable)
Select(String, String, DataViewRowState)

取得符合篩選條件 (按照排序順序,並符合指定狀態) 的所有 DataRow 物件之陣列。Gets an array of all DataRow objects that match the filter in the order of the sort that match the specified state.

(繼承來源 DataTable)
ToString()

如果存在串連的字串,則取得 TableNameDisplayExpressionGets the TableName and DisplayExpression, if there is one as a concatenated string.

(繼承來源 DataTable)
WriteXml(Stream)

使用指定的 Stream,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified Stream.

(繼承來源 DataTable)
WriteXml(Stream, Boolean)

使用指定的 Stream,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified Stream. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(Stream, XmlWriteMode)

使用指定的 DataTable,寫入 XmlWriteMode 的目前資料 (並選擇性寫入結構描述) 至指定的檔案。Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema.

(繼承來源 DataTable)
WriteXml(Stream, XmlWriteMode, Boolean)

使用指定的 DataTable,寫入 XmlWriteMode 的目前資料 (並選擇性寫入結構描述) 至指定的檔案。Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(String)

使用指定的檔案,將 DataTable 目前的內容寫成 XML。Writes the current contents of the DataTable as XML using the specified file.

(繼承來源 DataTable)
WriteXml(String, Boolean)

使用指定的檔案,將 DataTable 目前的內容寫成 XML。Writes the current contents of the DataTable as XML using the specified file. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(String, XmlWriteMode)

使用指定的檔案和 DataTable,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema.

(繼承來源 DataTable)
WriteXml(String, XmlWriteMode, Boolean)

使用指定的檔案和 DataTable,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(TextWriter)

使用指定的 TextWriter,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified TextWriter.

(繼承來源 DataTable)
WriteXml(TextWriter, Boolean)

使用指定的 TextWriter,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified TextWriter. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(TextWriter, XmlWriteMode)

使用指定的 DataTableTextWriter,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema.

(繼承來源 DataTable)
WriteXml(TextWriter, XmlWriteMode, Boolean)

使用指定的 DataTableTextWriter,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXml(XmlWriter)

使用指定的 XmlWriter,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified XmlWriter.

(繼承來源 DataTable)
WriteXml(XmlWriter, Boolean)

使用指定的 XmlWriter,將 DataTable 目前的內容寫入為 XML。Writes the current contents of the DataTable as XML using the specified XmlWriter.

(繼承來源 DataTable)
WriteXml(XmlWriter, XmlWriteMode)

使用指定的 DataTableXmlWriter,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema.

(繼承來源 DataTable)
WriteXml(XmlWriter, XmlWriteMode, Boolean)

使用指定的 DataTableXmlWriter,寫入 XmlWriteMode 的目前資料,並選擇性寫入結構描述。Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. 若要寫入結構描述,請設定 mode 參數的值為 WriteSchemaTo write the schema, set the value for the mode parameter to WriteSchema. 若要儲存資料表及其所有子系的資料,請將 writeHierarchy 參數設定為 trueTo save the data for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXmlSchema(Stream)

DataTable 目前的資料結構撰寫成 XML 結構描述,寫入至指定的資料流。Writes the current data structure of the DataTable as an XML schema to the specified stream.

(繼承來源 DataTable)
WriteXmlSchema(Stream, Boolean)

DataTable 目前的資料結構撰寫成 XML 結構描述,寫入至指定的資料流。Writes the current data structure of the DataTable as an XML schema to the specified stream. 若要儲存資料表及其所有子代的結構描述,請將 writeHierarchy 參數設定為 trueTo save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXmlSchema(String)

DataTable 目前的資料結構撰寫成 XML 結構描述,寫入至指定的檔案。Writes the current data structure of the DataTable as an XML schema to the specified file.

(繼承來源 DataTable)
WriteXmlSchema(String, Boolean)

DataTable 目前的資料結構撰寫成 XML 結構描述,寫入至指定的檔案。Writes the current data structure of the DataTable as an XML schema to the specified file. 若要儲存資料表及其所有子代的結構描述,請將 writeHierarchy 參數設定為 trueTo save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXmlSchema(TextWriter)

使用指定的 DataTable,將 TextWriter 目前的資料結構撰寫成 XML 結構描述。Writes the current data structure of the DataTable as an XML schema using the specified TextWriter.

(繼承來源 DataTable)
WriteXmlSchema(TextWriter, Boolean)

使用指定的 DataTable,將 TextWriter 目前的資料結構撰寫成 XML 結構描述。Writes the current data structure of the DataTable as an XML schema using the specified TextWriter. 若要儲存資料表及其所有子代的結構描述,請將 writeHierarchy 參數設定為 trueTo save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)
WriteXmlSchema(XmlWriter)

使用指定的 DataTable,將 XmlWriter 目前的資料結構撰寫成 XML 結構描述。Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter.

(繼承來源 DataTable)
WriteXmlSchema(XmlWriter, Boolean)

使用指定的 DataTable,將 XmlWriter 目前的資料結構撰寫成 XML 結構描述。Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter. 若要儲存資料表及其所有子代的結構描述,請將 writeHierarchy 參數設定為 trueTo save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

(繼承來源 DataTable)

事件

ColumnChanged

發生在值已經為 DataColumn 中指定的 DataRow 變更之後。Occurs after a value has been changed for the specified DataColumn in a DataRow.

(繼承來源 DataTable)
ColumnChanging

發生在值正在為 DataColumn 中指定的 DataRow 變更之後。Occurs when a value is being changed for the specified DataColumn in a DataRow.

(繼承來源 DataTable)
Disposed

加入事件處理常式來接聽元件上的 Disposed 事件。Adds an event handler to listen to the Disposed event on the component.

(繼承來源 MarshalByValueComponent)
Initialized

發生於 DataTable 初始化之後。Occurs after the DataTable is initialized.

(繼承來源 DataTable)
RowChanged

成功變更 DataRow 後發生。Occurs after a DataRow has been changed successfully.

(繼承來源 DataTable)
RowChanging

發生在 DataRow 正在變更時。Occurs when a DataRow is changing.

(繼承來源 DataTable)
RowDeleted

發生在資料表中的資料列已經刪除之後。Occurs after a row in the table has been deleted.

(繼承來源 DataTable)
RowDeleting

發生在資料表中的資料列將要刪除之前。Occurs before a row in the table is about to be deleted.

(繼承來源 DataTable)
TableCleared

發生在清除 DataTable 之後。Occurs after a DataTable is cleared.

(繼承來源 DataTable)
TableClearing

發生於清除 DataTable 時。Occurs when a DataTable is cleared.

(繼承來源 DataTable)
TableNewRow

發生在插入新的 DataRow 時。Occurs when a new DataRow is inserted.

(繼承來源 DataTable)

明確介面實作

IEnumerable.GetEnumerator()

傳回 DataRow 型別的列舉程式。Returns an enumerator for the typed-DataRow. 這個方法支援 Visual Studio 和 XSD.exe .NET Framework 工具產生的具型別 DataTable 物件。This method supports typed-DataTable object generation by Visual Studio and the XSD.exe .NET Framework tool. 這個方法不能從程式碼直接使用。This method is not intended to be used directly from your code.

IListSource.ContainsListCollection

如需這個成員的說明,請參閱 ContainsListCollectionFor a description of this member, see ContainsListCollection.

(繼承來源 DataTable)
IListSource.GetList()

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

(繼承來源 DataTable)
ISerializable.GetObjectData(SerializationInfo, StreamingContext)

以序列化 DataTable 所需的資料,填入序列化資訊物件。Populates a serialization information object with the data needed to serialize the DataTable.

(繼承來源 DataTable)
IXmlSerializable.GetSchema()

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

(繼承來源 DataTable)
IXmlSerializable.ReadXml(XmlReader)

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

(繼承來源 DataTable)
IXmlSerializable.WriteXml(XmlWriter)

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

(繼承來源 DataTable)

擴充方法

CreateScope(IServiceProvider)

建立可用來解析已設定範圍服務的新 IServiceScopeCreates a new IServiceScope that can be used to resolve scoped services.

GetRequiredService(IServiceProvider, Type)

IServiceProvider 取得 serviceType 類型的服務。Get service of type serviceType from the IServiceProvider.

GetRequiredService<T>(IServiceProvider)

IServiceProvider 取得 T 類型的服務。Get service of type T from the IServiceProvider.

GetService<T>(IServiceProvider)

IServiceProvider 取得 T 類型的服務。Get service of type T from the IServiceProvider.

GetServices(IServiceProvider, Type)

IServiceProvider 取得類型 serviceType 服務的列舉。Get an enumeration of services of type serviceType from the IServiceProvider.

GetServices<T>(IServiceProvider)

IServiceProvider 取得類型 T 服務的列舉。Get an enumeration of services of type T from the IServiceProvider.

ToImmutableArray<TSource>(IEnumerable<TSource>)

從指定的集合建立不可變的陣列。Creates an immutable array from the specified collection.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

從現有的項目集合建構不可變的字典,將轉換函式套用至來源索引鍵。Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據序列的某些轉換來建構不可變的字典。Constructs an immutable dictionary based on some transformation of a sequence.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉及轉換序列,並產生其內容的不可變字典。Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

列舉及轉換序列,並使用指定的索引鍵比較子產生其內容的不可變字典。Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

列舉及轉換序列,並使用指定的索引鍵與值比較子產生其內容的不可變字典。Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

列舉序列,並產生其內容之不可變雜湊集。Enumerates a sequence and produces an immutable hash set of its contents.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

列舉序列、產生其內容之不可變雜湊集,且針對集合類型使用指定的相等比較子。Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableList<TSource>(IEnumerable<TSource>)

列舉序列,並產生其內容的不可變清單。Enumerates a sequence and produces an immutable list of its contents.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉及轉換序列,並產生不可變的排序字典作為內容。Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

列舉及轉換序列,並使用指定的索引鍵比較子產生不可變的排序字典作為內容。Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

列舉及轉換序列,並使用指定的索引鍵與值比較子產生不可變的排序字典作為內容。Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

列舉序列,並產生其內容的不可變排序資料集。Enumerates a sequence and produces an immutable sorted set of its contents.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

列舉序列、產生其內容的不可變排序資料集,並使用指定的比較子。Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

AsDataView(DataTable)

建立並傳回已啟用 LINQ 的 DataView 物件。Creates and returns a LINQ-enabled DataView object.

AsEnumerable(DataTable)

傳回 IEnumerable<T> 物件,其中泛型參數 TDataRowReturns an IEnumerable<T> object, where the generic parameter T is DataRow. 這個物件可以在 LINQLINQ 運算式或方法查詢中使用。This object can be used in a LINQLINQ expression or method query.

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

AsEnumerable<TRow>(TypedTableBase<TRow>)

列舉 TypedTableBase<T> 的資料列項目並傳回 EnumerableRowCollection<TRow> 物件,其中泛型參數 TDataRowEnumerates the data row elements of the TypedTableBase<T> and returns an EnumerableRowCollection<TRow> object, where the generic parameter T is DataRow. 這個物件可以在 LINQLINQ 運算式或方法查詢中使用。This object can be used in a LINQLINQ expression or method query.

ElementAtOrDefault<TRow>(TypedTableBase<TRow>, Int32)

傳回位於序列中指定的資料列的項目;如果資料列超出範圍,則傳回預設值。Returns the element at a specified row in a sequence or a default value if the row is out of range.

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

依據指定的索引鍵,按遞增順序排序 TypedTableBase<T> 的資料列。Sorts the rows of a TypedTableBase<T> in ascending order according to the specified key.

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

依據指定的索引鍵和比較子,按遞增順序排序 TypedTableBase<T> 的資料列。Sorts the rows of a TypedTableBase<T> in ascending order according to the specified key and comparer.

OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

依據指定的索引鍵,按遞減順序排序 TypedTableBase<T> 的資料列。Sorts the rows of a TypedTableBase<T> in descending order according to the specified key.

OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

依據指定的索引鍵和比較子,按遞減順序排序 TypedTableBase<T> 的資料列。Sorts the rows of a TypedTableBase<T> in descending order according to the specified key and comparer.

Select<TRow,S>(TypedTableBase<TRow>, Func<TRow,S>)

TypedTableBase<T> 的各個項目投影成一個新的表單。Projects each element of a TypedTableBase<T> into a new form.

Where<TRow>(TypedTableBase<TRow>, Func<TRow,Boolean>)

根據指定的述詞來篩選資料列序列。Filters a sequence of rows based on the specified predicate.

Aggregate<TSource>(IEnumerable<TSource>, Func<TSource,TSource,TSource>)

將累加函式套用到序列上。Applies an accumulator function over a sequence.

Aggregate<TSource,TAccumulate>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>)

將累加函式套用到序列上。Applies an accumulator function over a sequence. 使用指定的初始值做為初始累加值。The specified seed value is used as the initial accumulator value.

Aggregate<TSource,TAccumulate,TResult>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>)

將累加函式套用到序列上。Applies an accumulator function over a sequence. 使用指定的值做為初始累加值,並使用指定的函式來選取結果值。The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

All<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

判斷序列的所有項目是否全都符合條件。Determines whether all elements of a sequence satisfy a condition.

Any<TSource>(IEnumerable<TSource>)

判斷序列是否包含任何項目。Determines whether a sequence contains any elements.

Any<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

判斷序列的任何項目是否符合條件。Determines whether any element of a sequence satisfies a condition.

Append<TSource>(IEnumerable<TSource>, TSource)

將值附加在序列結尾。Appends a value to the end of the sequence.

AsEnumerable<TSource>(IEnumerable<TSource>)

傳回 IEnumerable<T> 類型的輸入。Returns the input typed as IEnumerable<T>.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Decimal 值序列的平均值。Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Double>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Double 值序列的平均值。Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Int32>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Int32 值序列的平均值。Computes the average of a sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Int64>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Int64 值序列的平均值。Computes the average of a sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Decimal 值的平均值。Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Double 值的平均值。Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Int32 值的平均值。Computes the average of a sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Int64 值的平均值。Computes the average of a sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Single 值的平均值。Computes the average of a sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(IEnumerable<TSource>, Func<TSource,Single>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Single 值序列的平均值。Computes the average of a sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.

Cast<TResult>(IEnumerable)

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

Concat<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

串連兩個序列。Concatenates two sequences.

Contains<TSource>(IEnumerable<TSource>, TSource)

使用預設的相等比較子 (Comparer) 來判斷序列是否包含指定的項目。Determines whether a sequence contains a specified element by using the default equality comparer.

Contains<TSource>(IEnumerable<TSource>, TSource, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 來判斷序列是否包含指定的項目。Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>.

Count<TSource>(IEnumerable<TSource>)

傳回序列中的項目數。Returns the number of elements in a sequence.

Count<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回數字,代表指定之序列中符合條件的項目數目。Returns a number that represents how many elements in the specified sequence satisfy a condition.

DefaultIfEmpty<TSource>(IEnumerable<TSource>)

傳回指定之序列的項目;如果序列是空的,則傳回單一集合中型別參數的預設值。Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.

DefaultIfEmpty<TSource>(IEnumerable<TSource>, TSource)

傳回指定之序列的項目;如果序列是空的,則傳回單一集合中型別參數的預設值。Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.

Distinct<TSource>(IEnumerable<TSource>)

使用預設的相等比較子來比較值,以便從序列傳回獨特的項目。Returns distinct elements from a sequence by using the default equality comparer to compare values.

Distinct<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 來比較值,以便從序列傳回獨特的項目。Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values.

ElementAt<TSource>(IEnumerable<TSource>, Int32)

傳回位於序列中指定索引處的項目。Returns the element at a specified index in a sequence.

ElementAtOrDefault<TSource>(IEnumerable<TSource>, Int32)

傳回位於序列中指定索引處的元素;如果索引超出範圍,則傳回預設值。Returns the element at a specified index in a sequence or a default value if the index is out of range.

Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

使用預設相等比較子來比較值,以便產生兩個序列的差異。Produces the set difference of two sequences by using the default equality comparer to compare values.

Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 來比較值,以便產生兩個序列的差異。Produces the set difference of two sequences by using the specified IEqualityComparer<T> to compare values.

First<TSource>(IEnumerable<TSource>)

傳回序列的第一個項目。Returns the first element of a sequence.

First<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合指定條件的第一個元素。Returns the first element in a sequence that satisfies a specified condition.

FirstOrDefault<TSource>(IEnumerable<TSource>)

傳回序列的第一個元素;如果序列中沒有包含任何元素,則傳回預設值。Returns the first element of a sequence, or a default value if the sequence contains no elements.

FirstOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合條件的第一個元素;如果找不到這類元素,則傳回預設值。Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.

GroupBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

依據指定的索引鍵選擇器函式來群組序列的項目。Groups the elements of a sequence according to a specified key selector function.

GroupBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

依據指定的索引鍵選取器函式來群組序列的項目,並使用指定的比較子來比較索引鍵。Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

GroupBy<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

依據指定的索引鍵選取器函式來群組序列的項目,並使用指定的函式來投影每個群組的項目。Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.

GroupBy<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

依據索引鍵選取器函式來群組序列中的項目。Groups the elements of a sequence according to a key selector function. 索引鍵是使用比較子來進行比較,而每個群組的項目都是利用指定的函式進行投影。The keys are compared by using a comparer and each group's elements are projected by using a specified function.

GroupBy<TSource,TKey,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>)

依據指定的索引鍵選取器函式來群組序列的項目,並從每個群組及其索引鍵建立結果值。Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.

GroupBy<TSource,TKey,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>)

依據指定的索引鍵選取器函式來群組序列的項目,並從每個群組及其索引鍵建立結果值。Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 索引鍵是使用指定的比較子來進行比較。The keys are compared by using a specified comparer.

GroupBy<TSource,TKey,TElement,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>)

依據指定的索引鍵選取器函式來群組序列的項目,並從每個群組及其索引鍵建立結果值。Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 每個群組的項目都是利用指定的函式進行投影。The elements of each group are projected by using a specified function.

GroupBy<TSource,TKey,TElement,TResult>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>)

依據指定的索引鍵選取器函式來群組序列的項目,並從每個群組及其索引鍵建立結果值。Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 索引鍵值是使用指定的比較子來進行比較,而每個群組的項目則都是利用指定的函式進行投影。Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.

GroupJoin<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>,TResult>)

根據索引鍵相等與否,將兩個序列的項目相互關聯,並群組產生的結果。Correlates the elements of two sequences based on equality of keys and groups the results. 預設的相等比較子是用於比較索引鍵。The default equality comparer is used to compare keys.

GroupJoin<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,IEnumerable<TInner>,TResult>, IEqualityComparer<TKey>)

根據索引鍵相等與否,將兩個序列的項目相互關聯,並群組產生的結果。Correlates the elements of two sequences based on key equality and groups the results. 指定的 IEqualityComparer<T> 是用於比較索引鍵。A specified IEqualityComparer<T> is used to compare keys.

Intersect<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

使用預設相等比較子來比較值,以便產生兩個序列的交集。Produces the set intersection of two sequences by using the default equality comparer to compare values.

Intersect<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 來比較值,以便產生兩個序列的交集。Produces the set intersection of two sequences by using the specified IEqualityComparer<T> to compare values.

Join<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>)

根據相符索引鍵,將兩個序列的項目相互關聯。Correlates the elements of two sequences based on matching keys. 預設的相等比較子是用於比較索引鍵。The default equality comparer is used to compare keys.

Join<TOuter,TInner,TKey,TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer<TKey>)

根據相符索引鍵,將兩個序列的項目相互關聯。Correlates the elements of two sequences based on matching keys. 指定的 IEqualityComparer<T> 是用於比較索引鍵。A specified IEqualityComparer<T> is used to compare keys.

Last<TSource>(IEnumerable<TSource>)

傳回序列的最後一個項目。Returns the last element of a sequence.

Last<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合指定之條件的最後一個元素。Returns the last element of a sequence that satisfies a specified condition.

LastOrDefault<TSource>(IEnumerable<TSource>)

傳回序列的最後一個元素;如果序列中沒有包含任何元素,則傳回預設值。Returns the last element of a sequence, or a default value if the sequence contains no elements.

LastOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合條件的最後一個元素;如果找不到這類元素,則傳回預設值。Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.

LongCount<TSource>(IEnumerable<TSource>)

傳回代表序列中項目總數的 Int64Returns an Int64 that represents the total number of elements in a sequence.

LongCount<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回 Int64,其代表序列中符合條件的項目數目。Returns an Int64 that represents how many elements in a sequence satisfy a condition.

Max<TSource>(IEnumerable<TSource>)

傳回泛型序列中的最大值。Returns the maximum value in a generic sequence.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>)

在序列的每個項目上叫用轉換函式,並傳回最大的 Decimal 值。Invokes a transform function on each element of a sequence and returns the maximum Decimal value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Double>)

在序列的每個項目上叫用轉換函式,並傳回最大的 Double 值。Invokes a transform function on each element of a sequence and returns the maximum Double value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Int32>)

在序列的每個項目上叫用轉換函式,並傳回最大的 Int32 值。Invokes a transform function on each element of a sequence and returns the maximum Int32 value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Int64>)

在序列的每個項目上叫用轉換函式,並傳回最大的 Int64 值。Invokes a transform function on each element of a sequence and returns the maximum Int64 value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>)

在序列的每個項目上叫用轉換函式,並傳回最大的可為 Null 之 Decimal 值。Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>)

在序列的每個項目上叫用轉換函式,並傳回最大的可為 Null 之 Double 值。Invokes a transform function on each element of a sequence and returns the maximum nullable Double value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>)

在序列的每個項目上叫用轉換函式,並傳回最大的可為 Null 之 Int32 值。Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>)

在序列的每個項目上叫用轉換函式,並傳回最大的可為 Null 之 Int64 值。Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>)

在序列的每個項目上叫用轉換函式,並傳回最大的可為 Null 之 Single 值。Invokes a transform function on each element of a sequence and returns the maximum nullable Single value.

Max<TSource>(IEnumerable<TSource>, Func<TSource,Single>)

在序列的每個項目上叫用轉換函式,並傳回最大的 Single 值。Invokes a transform function on each element of a sequence and returns the maximum Single value.

Max<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>)

在泛型序列的每個項目上叫用轉換函式,並傳回最大的結果值。Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.

Min<TSource>(IEnumerable<TSource>)

傳回泛型序列中的最小值。Returns the minimum value in a generic sequence.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>)

在序列的每個項目上叫用轉換函式,並傳回最小的 Decimal 值。Invokes a transform function on each element of a sequence and returns the minimum Decimal value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Double>)

在序列的每個項目上叫用轉換函式,並傳回最小的 Double 值。Invokes a transform function on each element of a sequence and returns the minimum Double value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Int32>)

在序列的每個項目上叫用轉換函式,並傳回最小的 Int32 值。Invokes a transform function on each element of a sequence and returns the minimum Int32 value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Int64>)

在序列的每個項目上叫用轉換函式,並傳回最小的 Int64 值。Invokes a transform function on each element of a sequence and returns the minimum Int64 value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>)

在序列的每個項目上叫用轉換函式,並傳回最小的可為 Null 之 Decimal 值。Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>)

在序列的每個項目上叫用轉換函式,並傳回最小的可為 Null 之 Double 值。Invokes a transform function on each element of a sequence and returns the minimum nullable Double value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>)

在序列的每個項目上叫用轉換函式,並傳回最小的可為 Null 之 Int32 值。Invokes a transform function on each element of a sequence and returns the minimum nullable Int32 value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>)

在序列的每個項目上叫用轉換函式,並傳回最小的可為 Null 之 Int64 值。Invokes a transform function on each element of a sequence and returns the minimum nullable Int64 value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>)

在序列的每個項目上叫用轉換函式,並傳回最小的可為 Null 之 Single 值。Invokes a transform function on each element of a sequence and returns the minimum nullable Single value.

Min<TSource>(IEnumerable<TSource>, Func<TSource,Single>)

在序列的每個項目上叫用轉換函式,並傳回最小的 Single 值。Invokes a transform function on each element of a sequence and returns the minimum Single value.

Min<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>)

在泛型序列的每個項目上叫用轉換函式,並傳回最小的結果值。Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.

OfType<TResult>(IEnumerable)

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

OrderBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

依據索引鍵,按遞增順序排序序列中的項目。Sorts the elements of a sequence in ascending order according to a key.

OrderBy<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>)

使用指定的比較子,依遞增順序排序序列中的項目。Sorts the elements of a sequence in ascending order by using a specified comparer.

OrderByDescending<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

依據索引鍵,按遞減順序排序序列中的項目。Sorts the elements of a sequence in descending order according to a key.

OrderByDescending<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>)

使用指定的比較子,依遞減順序排序序列中的項目。Sorts the elements of a sequence in descending order by using a specified comparer.

Prepend<TSource>(IEnumerable<TSource>, TSource)

將值新增至序列的開頭。Adds a value to the beginning of the sequence.

Reverse<TSource>(IEnumerable<TSource>)

反轉序列中項目的排序方向。Inverts the order of the elements in a sequence.

Select<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>)

將序列的每個元素規劃成一個新的表單。Projects each element of a sequence into a new form.

Select<TSource,TResult>(IEnumerable<TSource>, Func<TSource,Int32,TResult>)

透過加入項目的索引,將序列的每個項目投影成新的表單。Projects each element of a sequence into a new form by incorporating the element's index.

SelectMany<TSource,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>)

將序列的每個項目都投影成 IEnumerable<T>,並將產生的序列簡化成單一序列。Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence.

SelectMany<TSource,TResult>(IEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TResult>>)

將序列的每個項目都投影成 IEnumerable<T>,並將產生的序列簡化成單一序列。Projects each element of a sequence to an IEnumerable<T>, and flattens the resulting sequences into one sequence. 各來源項目的索引是在該項目的投影表單中使用。The index of each source element is used in the projected form of that element.

SelectMany<TSource,TCollection,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)

將序列的每個項目投影為 IEnumerable<T>、將產生的序列簡化成單一序列,並對其中的每個項目叫用結果選取器函式。Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

SelectMany<TSource,TCollection,TResult>(IEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)

將序列的每個項目投影為 IEnumerable<T>、將產生的序列簡化成單一序列,並對其中的每個項目叫用結果選取器函式。Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. 各來源項目的索引是在該項目的中繼投影表單中使用。The index of each source element is used in the intermediate projected form of that element.

SequenceEqual<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

使用項目之型別的預設相等比較子來比較項目,以判斷兩個序列是否相等。Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.

SequenceEqual<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 來比較項目,以判斷兩個序列是否相等。Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer<T>.

Single<TSource>(IEnumerable<TSource>)

傳回序列的唯一一個元素,如果序列中不是正好一個元素,則擲回例外狀況。Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.

Single<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合指定之條件的唯一一個元素,如果有一個以上這類元素,則擲回例外狀況。Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

SingleOrDefault<TSource>(IEnumerable<TSource>)

傳回序列的唯一一個項目,如果序列是空白,則為預設值,如果序列中有一個以上的項目,這個方法就會擲回例外狀況。Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

SingleOrDefault<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

傳回序列中符合指定之條件的唯一一個元素,如果沒有這類元素,則為預設值,如果有一個以上的元素符合條件,這個方法就會擲回例外狀況。Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

Skip<TSource>(IEnumerable<TSource>, Int32)

略過序列中指定的項目數目,然後傳回其餘項目。Bypasses a specified number of elements in a sequence and then returns the remaining elements.

SkipLast<TSource>(IEnumerable<TSource>, Int32)

傳回新的可列舉集合,其包含已省略來源集合最後 count 元素的所有 source 元素。Returns a new enumerable collection that contains the elements from source with the last count elements of the source collection omitted.

SkipWhile<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

只要指定的條件為 true,便略過序列中的項目,然後傳回其餘項目。Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

SkipWhile<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>)

只要指定的條件為 true,便略過序列中的項目,然後傳回其餘項目。Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. 項目的索引是用於述詞功能的邏輯中。The element's index is used in the logic of the predicate function.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Decimal>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Decimal 值序列的總和。Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Double>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Double 值序列的總和。Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Int32>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Int32 值序列的總和。Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Int64>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Int64 值序列的總和。Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Decimal>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Decimal 值的總和。Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Double>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Double 值的總和。Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int32>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Int32 值的總和。Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Int64>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Int64 值的總和。Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Nullable<Single>>)

計算在輸入序列中各項目上叫用轉換函式後所取得可為 Null 之 Single 值的總和。Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(IEnumerable<TSource>, Func<TSource,Single>)

計算在輸入序列中各項目上叫用轉換函式後所取得之 Single 值序列的總和。Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.

Take<TSource>(IEnumerable<TSource>, Int32)

從序列開頭傳回指定的連續項目數目。Returns a specified number of contiguous elements from the start of a sequence.

TakeLast<TSource>(IEnumerable<TSource>, Int32)

傳回新的可列舉集合,其包含 source 的最後 count 元素。Returns a new enumerable collection that contains the last count elements from source.

TakeWhile<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

只要指定的條件為 true,就會傳回序列中的項目。Returns elements from a sequence as long as a specified condition is true.

TakeWhile<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>)

只要指定的條件為 true,就會傳回序列中的項目。Returns elements from a sequence as long as a specified condition is true. 項目的索引是用於述詞功能的邏輯中。The element's index is used in the logic of the predicate function.

ToArray<TSource>(IEnumerable<TSource>)

IEnumerable<T> 建立陣列。Creates an array from a IEnumerable<T>.

ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

根據指定的索引鍵選擇器函式,從 Dictionary<TKey,TValue> 建立 IEnumerable<T>Creates a Dictionary<TKey,TValue> from an IEnumerable<T> according to a specified key selector function.

ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器函式和索引鍵比較子,從 Dictionary<TKey,TValue> 建立 IEnumerable<T>Creates a Dictionary<TKey,TValue> from an IEnumerable<T> according to a specified key selector function and key comparer.

ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

根據指定的索引鍵選取器和項目選取器函式,從 Dictionary<TKey,TValue> 建立 IEnumerable<T>Creates a Dictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector and element selector functions.

ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器函式、比較子和項目選取器函式,從 Dictionary<TKey,TValue> 建立 IEnumerable<T>Creates a Dictionary<TKey,TValue> from an IEnumerable<T> according to a specified key selector function, a comparer, and an element selector function.

ToHashSet<TSource>(IEnumerable<TSource>)

IEnumerable<T> 建立 HashSet<T>Creates a HashSet<T> from an IEnumerable<T>.

ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

使用比較金鑰的 comparerIEnumerable<T> 建立 HashSet<T>Creates a HashSet<T> from an IEnumerable<T> using the comparer to compare keys.

ToList<TSource>(IEnumerable<TSource>)

IEnumerable<T> 建立 List<T>Creates a List<T> from an IEnumerable<T>.

ToLookup<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

根據指定的索引鍵選擇器函式,從 Lookup<TKey,TElement> 建立 IEnumerable<T>Creates a Lookup<TKey,TElement> from an IEnumerable<T> according to a specified key selector function.

ToLookup<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器函式和索引鍵比較子,從 Lookup<TKey,TElement> 建立 IEnumerable<T>Creates a Lookup<TKey,TElement> from an IEnumerable<T> according to a specified key selector function and key comparer.

ToLookup<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

根據指定的索引鍵選取器和項目選取器函式,從 Lookup<TKey,TElement> 建立 IEnumerable<T>Creates a Lookup<TKey,TElement> from an IEnumerable<T> according to specified key selector and element selector functions.

ToLookup<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器函式、比較子和項目選取器函式,從 Lookup<TKey,TElement> 建立 IEnumerable<T>Creates a Lookup<TKey,TElement> from an IEnumerable<T> according to a specified key selector function, a comparer and an element selector function.

Union<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)

使用預設相等比較值來比較值,以便產生兩個序列的集合等位。Produces the set union of two sequences by using the default equality comparer.

Union<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer<T> 產生兩個序列的集合等位。Produces the set union of two sequences by using a specified IEqualityComparer<T>.

Where<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>)

根據述詞來篩選值序列。Filters a sequence of values based on a predicate.

Where<TSource>(IEnumerable<TSource>, Func<TSource,Int32,Boolean>)

根據述詞來篩選值序列。Filters a sequence of values based on a predicate. 述詞函式的邏輯中使用各項目的索引。Each element's index is used in the logic of the predicate function.

Zip<TFirst,TSecond>(IEnumerable<TFirst>, IEnumerable<TSecond>)

從兩個指定序列中的元素產生一系列元組。Produces a sequence of tuples with elements from the two specified sequences.

Zip<TFirst,TSecond,TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

將指定的函式套用至兩個序列的對應項目,產生結果的序列。Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.

AsParallel(IEnumerable)

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

AsParallel<TSource>(IEnumerable<TSource>)

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

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

AsQueryable<TElement>(IEnumerable<TElement>)

將泛型 IEnumerable<T> 轉換成泛型 IQueryable<T>Converts a generic IEnumerable<T> to a generic IQueryable<T>.

Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於

另請參閱