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

源序列中由表格表示的对象的类型(通常为 DataRow)。The 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

获取由该表维护的约束的集合。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

获取一个值,该值指示是否已初始化 DataTableGets a value that indicates whether the DataTable is initialized.

(继承自 DataTable)
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

获取或设置用作数据表主键的列数组。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()

开始初始化在窗体上使用或由另一个组件使用的 DataTableBegins 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()

克隆 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()

返回与此 DataTable 内的数据对应的 DataTableReaderReturns 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 占用的非托管资源,还可以另外再释放托管资源。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)

获取由 DataRowState 筛选的 DataTable 的副本,该副本包含上次加载以来或调用 AcceptChanges() 以来进行的所有更改。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)

通过所提供的 IDataReader,用某个数据源的值填充 DataTableFills 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)

通过所提供的 IDataReader,用某个数据源的值填充 DataTableFills 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)

通过所提供的使用错误处理委托的 IDataReader,用某个数据源中的值填充 DataTableFills 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 正在移除 DataColumnNotifies 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)

使用指定的 Stream 将 XML 架构和数据读入 DataTableReads 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)

使用指定的 TextReader 将 XML 架构和数据读入 DataTableReads XML schema and data into the DataTable using the specified TextReader.

(继承自 DataTable)
ReadXml(XmlReader)

使用指定的 XmlReader 将 XML 架构和数据读入 DataTableReads 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)

使用指定的 TextReader 将 XML 架构读入 DataTableReads an XML schema into the DataTable using the specified TextReader.

(继承自 DataTable)
ReadXmlSchema(XmlReader)

使用指定的 XmlReader 将 XML 架构读入 DataTableReads 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. 如果数据集包含一个数据表,则在重置该表之后,它将仍是数据集的一部分。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()

获取 TableNameDisplayExpression(如果有一个用作连接字符串)。Gets the TableName and DisplayExpression, if there is one as a concatenated string.

(继承自 DataTable)
WriteXml(Stream)

通过指定的 Stream,按 XML 形式编写 DataTable 的当前内容。Writes the current contents of the DataTable as XML using the specified Stream.

(继承自 DataTable)
WriteXml(Stream, Boolean)

通过指定的 Stream,按 XML 形式编写 DataTable 的当前内容。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)

使用指定的 XmlWriteModeDataTable 的当前数据和架构(可选)写入指定的文件。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)

使用指定的 XmlWriteModeDataTable 的当前数据和架构(可选)写入指定的文件。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)

使用指定的文件以 XML 形式写入 DataTable 的当前内容。Writes the current contents of the DataTable as XML using the specified file.

(继承自 DataTable)
WriteXml(String, Boolean)

使用指定的文件以 XML 形式写入 DataTable 的当前内容。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)

使用指定的文件和 XmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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)

使用指定的文件和 XmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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,按 XML 形式编写 DataTable 的当前内容。Writes the current contents of the DataTable as XML using the specified TextWriter.

(继承自 DataTable)
WriteXml(TextWriter, Boolean)

通过指定的 TextWriter,按 XML 形式编写 DataTable 的当前内容。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)

使用指定的 TextWriterXmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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)

使用指定的 TextWriterXmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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,按 XML 形式编写 DataTable 的当前内容。Writes the current contents of the DataTable as XML using the specified XmlWriter.

(继承自 DataTable)
WriteXml(XmlWriter, Boolean)

通过指定的 XmlWriter,按 XML 形式编写 DataTable 的当前内容。Writes the current contents of the DataTable as XML using the specified XmlWriter.

(继承自 DataTable)
WriteXml(XmlWriter, XmlWriteMode)

使用指定的 XmlWriterXmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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)

使用指定的 XmlWriterXmlWriteMode 写入 DataTable 的当前数据和架构(可选)。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)

以 XML 架构的形式将 DataTable 的当前数据结构写入指定的流。Writes the current data structure of the DataTable as an XML schema to the specified stream.

(继承自 DataTable)
WriteXmlSchema(Stream, Boolean)

以 XML 架构的形式将 DataTable 的当前数据结构写入指定的流。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)

以 XML 架构的形式将 DataTable 的当前数据结构写入指定的文件。Writes the current data structure of the DataTable as an XML schema to the specified file.

(继承自 DataTable)
WriteXmlSchema(String, Boolean)

以 XML 架构的形式将 DataTable 的当前数据结构写入指定的文件。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)

使用指定的 TextWriter 以 XML 架构的形式写入 DataTable 的当前数据结构。Writes the current data structure of the DataTable as an XML schema using the specified TextWriter.

(继承自 DataTable)
WriteXmlSchema(TextWriter, Boolean)

使用指定的 TextWriter 以 XML 架构的形式写入 DataTable 的当前数据结构。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)

使用指定的 XmlWriter 以 XML 架构的形式写入 DataTable 的当前数据结构。Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter.

(继承自 DataTable)
WriteXmlSchema(XmlWriter, Boolean)

使用指定的 XmlWriter 以 XML 架构的形式写入 DataTable 的当前数据结构。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

更改 DataRow 中指定的 DataColumn 值之后发生。Occurs after a value has been changed for the specified DataColumn in a DataRow.

(继承自 DataTable)
ColumnChanging

更改 DataRow 中指定的 DataColumn 值时发生。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>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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)

通过使用默认的相等比较器确定序列是否包含指定的元素。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>)

返回表示序列中满足条件的元素的数量的 Int64Returns 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)

返回一个新的可枚举集合,它包含 source 中的元素,但省略了源集合中的 count 个元素。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)

返回一个新的可枚举集合,它包含 count 中的最后 source 个元素。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>)

根据指定的键选择器函数,从 IEnumerable<T> 创建一个 Dictionary<TKey,TValue>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>)

根据指定的键选择器函数和键比较器,从 IEnumerable<T> 创建一个 Dictionary<TKey,TValue>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>)

根据指定的键选择器和元素选择器函数,从 IEnumerable<T> 创建一个 Dictionary<TKey,TValue>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>)

根据指定的键选择器函数、比较器和元素选择器函数,从 IEnumerable<T> 创建一个 Dictionary<TKey,TValue>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>)

使用 comparer 通过 IEnumerable<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>)

根据指定的键选择器函数,从 IEnumerable<T> 创建一个 Lookup<TKey,TElement>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>)

根据指定的键选择器函数和键比较器,从 IEnumerable<T> 创建一个 Lookup<TKey,TElement>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>)

根据指定的键选择器和元素选择器函数,从 IEnumerable<T> 创建一个 Lookup<TKey,TElement>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>)

根据指定的键选择器函数、比较器和元素选择器函数,从 IEnumerable<T> 创建一个 Lookup<TKey,TElement>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.

适用于

另请参阅