Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataTable Methods

DataTable Methods

The DataTable type exposes the following members.

  Name Description
Public method Supported by the XNA Framework AcceptChanges Commits all the changes made to this table since the last time AcceptChanges was called.
Public method Supported by the XNA Framework BeginInit Begins the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at run time.
Public method Supported by the XNA Framework BeginLoadData Turns off notifications, index maintenance, and constraints while loading data.
Public method Supported by the XNA Framework Clear Clears the DataTable of all data.
Public method Supported by the XNA Framework Clone Clones the structure of the DataTable, including all DataTable schemas and constraints.
Public method Supported by the XNA Framework Compute Computes the given expression on the current rows that pass the filter criteria.
Public method Supported by the XNA Framework Copy Copies both the structure and data for this DataTable.
Public method Supported by the XNA Framework CreateDataReader Returns a DataTableReader corresponding to the data within this DataTable.
Protected method Supported by the XNA Framework CreateInstance Infrastructure. Creates a new instance of DataTable.
Public method Supported by the XNA Framework Dispose() Releases all resources used by the MarshalByValueComponent. (Inherited from MarshalByValueComponent.)
Protected method Supported by the XNA Framework Dispose(Boolean) Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources. (Inherited from MarshalByValueComponent.)
Public method Supported by the XNA Framework EndInit Ends the initialization of a DataTable that is used on a form or used by another component. The initialization occurs at run time.
Public method Supported by the XNA Framework EndLoadData Turns on notifications, index maintenance, and constraints after loading data.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from MarshalByValueComponent.)
Public method Supported by the XNA Framework GetChanges() Gets a copy of the DataTable that contains all changes made to it since it was loaded or AcceptChanges was last called.
Public method Supported by the XNA Framework GetChanges(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.
Public method Static member Supported by the XNA Framework GetDataTableSchema This method returns an XmlSchemaSet instance containing the Web Services Description Language (WSDL) that describes the DataTable for Web Services.
Public method Supported by the XNA Framework GetErrors Gets an array of DataRow objects that contain errors.
Public method Supported by the XNA Framework GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetObjectData Populates a serialization information object with the data needed to serialize the DataTable.
Protected method Supported by the XNA Framework GetRowType Infrastructure. Gets the row type.
Protected method Supported by the XNA Framework GetSchema Infrastructure. For a description of this member, see IXmlSerializable.GetSchema.
Public method Supported by the XNA Framework GetService Gets the implementer of the IServiceProvider. (Inherited from MarshalByValueComponent.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework ImportRow Copies a DataRow into a DataTable, preserving any property settings, as well as original and current values.
Public method Supported by the XNA Framework Load(IDataReader) Fills a DataTable with values from a data source using the supplied IDataReader. If the DataTable already contains rows, the incoming data from the data source is merged with the existing rows.
Public method Supported by the XNA Framework Load(IDataReader, LoadOption) Fills a DataTable with values from a data source using the supplied IDataReader. 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.
Public method Supported by the XNA Framework Load(IDataReader, LoadOption, FillErrorEventHandler) Fills a DataTable with values from a data source using the supplied IDataReader using an error-handling delegate.
Public method Supported by the XNA Framework LoadDataRow(Object[], Boolean) Finds and updates a specific row. If no matching row is found, a new row is created using the given values.
Public method Supported by the XNA Framework LoadDataRow(Object[], LoadOption) Finds and updates a specific row. If no matching row is found, a new row is created using the given values.
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework Merge(DataTable) Merge the specified DataTable with the current DataTable.
Public method Supported by the XNA Framework Merge(DataTable, Boolean) Merge the specified DataTable with the current DataTable, indicating whether to preserve changes in the current DataTable.
Public method Supported by the XNA Framework Merge(DataTable, Boolean, MissingSchemaAction) Merge the specified DataTable with the current DataTable, indicating whether to preserve changes and how to handle missing schema in the current DataTable.
Public method Supported by the XNA Framework NewRow Creates a new DataRow with the same schema as the table.
Protected method Supported by the XNA Framework NewRowArray Infrastructure. Returns an array of DataRow.
Protected method Supported by the XNA Framework NewRowFromBuilder Creates a new row from an existing row.
Protected method Supported by the XNA Framework OnColumnChanged Raises the ColumnChanged event.
Protected method Supported by the XNA Framework OnColumnChanging Raises the ColumnChanging event.
Protected method Supported by the XNA Framework OnPropertyChanging Raises the PropertyChanged event.
Protected method OnRemoveColumn Notifies the DataTable that a DataColumn is being removed.
Protected method Supported by the XNA Framework OnRowChanged Raises the RowChanged event.
Protected method Supported by the XNA Framework OnRowChanging Raises the RowChanging event.
Protected method Supported by the XNA Framework OnRowDeleted Raises the RowDeleted event.
Protected method Supported by the XNA Framework OnRowDeleting Raises the RowDeleting event.
Protected method Supported by the XNA Framework OnTableCleared Raises the TableCleared event.
Protected method Supported by the XNA Framework OnTableClearing Raises the TableClearing event.
Protected method Supported by the XNA Framework OnTableNewRow Raises the TableNewRow event.
Public method Supported by the XNA Framework ReadXml(Stream) Reads XML schema and data into the DataTable using the specified Stream.
Public method Supported by the XNA Framework ReadXml(String) Reads XML schema and data into the DataTable from the specified file.
Public method Supported by the XNA Framework ReadXml(TextReader) Reads XML schema and data into the DataTable using the specified TextReader.
Public method Supported by the XNA Framework ReadXml(XmlReader) Reads XML Schema and Data into the DataTable using the specified XmlReader.
Public method Supported by the XNA Framework ReadXmlSchema(Stream) Reads an XML schema into the DataTable using the specified stream.
Public method Supported by the XNA Framework ReadXmlSchema(String) Reads an XML schema into the DataTable from the specified file.
Public method Supported by the XNA Framework ReadXmlSchema(TextReader) Reads an XML schema into the DataTable using the specified TextReader.
Public method Supported by the XNA Framework ReadXmlSchema(XmlReader) Reads an XML schema into the DataTable using the specified XmlReader.
Protected method Supported by the XNA Framework ReadXmlSerializable Infrastructure. Reads from an XML stream.
Public method Supported by the XNA Framework RejectChanges Rolls back all changes that have been made to the table since it was loaded, or the last time AcceptChanges was called.
Public method Supported by the XNA Framework Reset 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.
Public method Supported by the XNA Framework Select() Gets an array of all DataRow objects.
Public method Supported by the XNA Framework Select(String) Gets an array of all DataRow objects that match the filter criteria.
Public method Supported by the XNA Framework Select(String, String) Gets an array of all DataRow objects that match the filter criteria, in the specified sort order.
Public method Supported by the XNA Framework Select(String, String, DataViewRowState) Gets an array of all DataRow objects that match the filter in the order of the sort that match the specified state.
Public method Supported by the XNA Framework ToString Gets the TableName and DisplayExpression, if there is one as a concatenated string. (Overrides MarshalByValueComponent.ToString().)
Public method Supported by the XNA Framework WriteXml(Stream) Writes the current contents of the DataTable as XML using the specified Stream.
Public method Supported by the XNA Framework WriteXml(String) Writes the current contents of the DataTable as XML using the specified file.
Public method Supported by the XNA Framework WriteXml(TextWriter) Writes the current contents of the DataTable as XML using the specified TextWriter.
Public method Supported by the XNA Framework WriteXml(XmlWriter) Writes the current contents of the DataTable as XML using the specified XmlWriter.
Public method Supported by the XNA Framework WriteXml(Stream, Boolean) Writes the current contents of the DataTable as XML using the specified Stream. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(Stream, XmlWriteMode) Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method Supported by the XNA Framework WriteXml(String, Boolean) Writes the current contents of the DataTable as XML using the specified file. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(String, XmlWriteMode) Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method Supported by the XNA Framework WriteXml(TextWriter, Boolean) Writes the current contents of the DataTable as XML using the specified TextWriter. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(TextWriter, XmlWriteMode) Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method Supported by the XNA Framework WriteXml(XmlWriter, Boolean) Writes the current contents of the DataTable as XML using the specified XmlWriter.
Public method Supported by the XNA Framework WriteXml(XmlWriter, XmlWriteMode) Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method Supported by the XNA Framework WriteXml(Stream, XmlWriteMode, Boolean) Writes the current data, and optionally the schema, for the DataTable to the specified file using the specified XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(String, XmlWriteMode, Boolean) Writes the current data, and optionally the schema, for the DataTable using the specified file and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(TextWriter, XmlWriteMode, Boolean) Writes the current data, and optionally the schema, for the DataTable using the specified TextWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXml(XmlWriter, XmlWriteMode, Boolean) Writes the current data, and optionally the schema, for the DataTable using the specified XmlWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema. To save the data for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXmlSchema(Stream) Writes the current data structure of the DataTable as an XML schema to the specified stream.
Public method Supported by the XNA Framework WriteXmlSchema(String) Writes the current data structure of the DataTable as an XML schema to the specified file.
Public method Supported by the XNA Framework WriteXmlSchema(TextWriter) Writes the current data structure of the DataTable as an XML schema using the specified TextWriter.
Public method Supported by the XNA Framework WriteXmlSchema(XmlWriter) Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter.
Public method Supported by the XNA Framework WriteXmlSchema(Stream, Boolean) Writes the current data structure of the DataTable as an XML schema to the specified stream. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXmlSchema(String, Boolean) Writes the current data structure of the DataTable as an XML schema to the specified file. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXmlSchema(TextWriter, Boolean) Writes the current data structure of the DataTable as an XML schema using the specified TextWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.
Public method Supported by the XNA Framework WriteXmlSchema(XmlWriter, Boolean) Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.
Top

  Name Description
Public Extension Method AsDataView Creates and returns a LINQ-enabled DataView object. (Defined by DataTableExtensions.)
Public Extension Method AsEnumerable Returns an IEnumerable<T> object, where the generic parameter T is DataRow. This object can be used in a LINQ expression or method query. (Defined by DataTableExtensions.)
Top

  Name Description
Explicit interface implemetation Private method Supported by the XNA Framework IListSource.GetList For a description of this member, see IListSource.GetList.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.GetSchema For a description of this member, see IXmlSerializable.GetSchema.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.ReadXml For a description of this member, see IXmlSerializable.ReadXml.
Explicit interface implemetation Private method Supported by the XNA Framework IXmlSerializable.WriteXml For a description of this member, see IXmlSerializable.WriteXml.
Top
Show:
© 2015 Microsoft