Export (0) Print
Expand All

DataSet Methods

The DataSet type exposes the following members.

  NameDescription
Public method AcceptChanges Commits all the changes made to this DataSet since it was loaded or since the last time AcceptChanges was called.
Public method BeginInit Begins the initialization of a DataSet that is used on a form or used by another component. The initialization occurs at run time.
Public method Clear Clears the DataSet of any data by removing all rows in all tables.
Public method Clone Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data.
Public method Copy Copies both the structure and data for this DataSet.
Public method CreateDataReader() Returns a DataTableReader with one result set per DataTable, in the same sequence as the tables appear in the Tables collection.
Public method CreateDataReader(DataTable[]) Returns a DataTableReader with one result set per DataTable.
Protected method DetermineSchemaSerializationMode(XmlReader) Determines the SchemaSerializationMode for a DataSet.
Protected method DetermineSchemaSerializationMode(SerializationInfo, StreamingContext) Determines the SchemaSerializationMode for a DataSet.
Public method Dispose() Releases all resources used by the MarshalByValueComponent. (Inherited from MarshalByValueComponent.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources. (Inherited from MarshalByValueComponent.)
Public method EndInit Ends the initialization of a DataSet that is used on a form or used by another component. The initialization occurs at run time.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method 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 GetChanges() Gets a copy of the DataSet that contains all changes made to it since it was loaded or since AcceptChanges was last called.
Public method GetChanges(DataRowState) Gets a copy of the DataSet containing all changes made to it since it was last loaded, or since AcceptChanges was called, filtered by DataRowState.
Public method Static member GetDataSetSchema Infrastructure. Gets a copy of XmlSchemaSet for the DataSet.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Populates a serialization information object with the data needed to serialize the DataSet.
Protected method GetSchemaSerializable Infrastructure. Returns a serializable XMLSchema instance.
Protected method GetSerializationData Infrastructure. Deserializes the table data from the binary or XML stream.
Public method GetService Gets the implementer of the IServiceProvider. (Inherited from MarshalByValueComponent.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetXml Returns the XML representation of the data stored in the DataSet.
Public method GetXmlSchema Returns the XML Schema for the XML representation of the data stored in the DataSet.
Public method HasChanges() Gets a value indicating whether the DataSet has changes, including new, deleted, or modified rows.
Public method HasChanges(DataRowState) Gets a value indicating whether the DataSet has changes, including new, deleted, or modified rows, filtered by DataRowState.
Public method InferXmlSchema(Stream, String[]) Applies the XML schema from the specified Stream to the DataSet.
Public method InferXmlSchema(String, String[]) Applies the XML schema from the specified file to the DataSet.
Public method InferXmlSchema(TextReader, String[]) Applies the XML schema from the specified TextReader to the DataSet.
Public method InferXmlSchema(XmlReader, String[]) Applies the XML schema from the specified XmlReader to the DataSet.
Protected method InitializeDerivedDataSet Infrastructure. Deserialize all of the tables data of the DataSet from the binary or XML stream.
Protected method IsBinarySerialized Inspects the format of the serialized representation of the DataSet.
Public method Load(IDataReader, LoadOption, DataTable[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an array of DataTable instances to supply the schema and namespace information.
Public method Load(IDataReader, LoadOption, String[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an array of strings to supply the names for the tables within the DataSet.
Public method Load(IDataReader, LoadOption, FillErrorEventHandler, DataTable[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an array of DataTable instances to supply the schema and namespace information.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Merge(DataRow[]) Merges an array of DataRow objects into the current DataSet.
Public method Merge(DataSet) Merges a specified DataSet and its schema into the current DataSet.
Public method Merge(DataTable) Merges a specified DataTable and its schema into the current DataSet.
Public method Merge(DataSet, Boolean) Merges a specified DataSet and its schema into the current DataSet, preserving or discarding any changes in this DataSet according to the given argument.
Public method Merge(DataRow[], Boolean, MissingSchemaAction) Merges an array of DataRow objects into the current DataSet, preserving or discarding changes in the DataSet and handling an incompatible schema according to the given arguments.
Public method Merge(DataSet, Boolean, MissingSchemaAction) Merges a specified DataSet and its schema with the current DataSet, preserving or discarding changes in the current DataSet and handling an incompatible schema according to the given arguments.
Public method Merge(DataTable, Boolean, MissingSchemaAction) Merges a specified DataTable and its schema into the current DataSet, preserving or discarding changes in the DataSet and handling an incompatible schema according to the given arguments.
Protected method OnPropertyChanging Raises the OnPropertyChanging event.
Protected method OnRemoveRelation Occurs when a DataRelation object is removed from a DataTable.
Protected method OnRemoveTable Occurs when a DataTable is removed from a DataSet.
Protected method RaisePropertyChanging Sends a notification that the specified DataSet property is about to change.
Public method ReadXml(Stream) Reads XML schema and data into the DataSet using the specified System.IO.Stream.
Public method ReadXml(String) Reads XML schema and data into the DataSet using the specified file.
Public method ReadXml(TextReader) Reads XML schema and data into the DataSet using the specified System.IO.TextReader.
Public method ReadXml(XmlReader) Reads XML schema and data into the DataSet using the specified System.Xml.XmlReader.
Public method ReadXml(Stream, XmlReadMode) Reads XML schema and data into the DataSet using the specified System.IO.Stream and XmlReadMode.
Public method ReadXml(String, XmlReadMode) Reads XML schema and data into the DataSet using the specified file and XmlReadMode.
Public method ReadXml(TextReader, XmlReadMode) Reads XML schema and data into the DataSet using the specified System.IO.TextReader and XmlReadMode.
Public method ReadXml(XmlReader, XmlReadMode) Reads XML schema and data into the DataSet using the specified System.Xml.XmlReader and XmlReadMode.
Public method ReadXmlSchema(Stream) Reads the XML schema from the specified Stream into the DataSet.
Public method ReadXmlSchema(String) Reads the XML schema from the specified file into the DataSet.
Public method ReadXmlSchema(TextReader) Reads the XML schema from the specified TextReader into the DataSet.
Public method ReadXmlSchema(XmlReader) Reads the XML schema from the specified XmlReader into the DataSet.
Protected method ReadXmlSerializable Infrastructure. Ignores attributes and returns an empty DataSet.
Public method RejectChanges Rolls back all the changes made to the DataSet since it was created, or since the last time DataSet.AcceptChanges was called.
Public method Reset Resets the DataSet to its original state. Subclasses should override Reset to restore a DataSet to its original state.
Protected method ShouldSerializeRelations Gets a value indicating whether Relations property should be persisted.
Protected method ShouldSerializeTables Gets a value indicating whether Tables property should be persisted.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from MarshalByValueComponent.)
Public method WriteXml(Stream) Writes the current data for the DataSet using the specified System.IO.Stream.
Public method WriteXml(String) Writes the current data for the DataSet to the specified file.
Public method WriteXml(TextWriter) Writes the current data for the DataSet using the specified TextWriter.
Public method WriteXml(XmlWriter) Writes the current data for the DataSet to the specified XmlWriter.
Public method WriteXml(Stream, XmlWriteMode) Writes the current data, and optionally the schema, for the DataSet using the specified System.IO.Stream and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method WriteXml(String, XmlWriteMode) Writes the current data, and optionally the schema, for the DataSet to the specified file using the specified XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method WriteXml(TextWriter, XmlWriteMode) Writes the current data, and optionally the schema, for the DataSet using the specified TextWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method WriteXml(XmlWriter, XmlWriteMode) Writes the current data, and optionally the schema, for the DataSet using the specified XmlWriter and XmlWriteMode. To write the schema, set the value for the mode parameter to WriteSchema.
Public method WriteXmlSchema(Stream) Writes the DataSet structure as an XML schema to the specified System.IO.Stream object.
Public method WriteXmlSchema(String) Writes the DataSet structure as an XML schema to a file.
Public method WriteXmlSchema(TextWriter) Writes the DataSet structure as an XML schema to the specified TextWriter object.
Public method WriteXmlSchema(XmlWriter) Writes the DataSet structure as an XML schema to an XmlWriter object.
Public method WriteXmlSchema(Stream, Converter<Type, String>) Writes the DataSet structure as an XML schema to the specified System.IO.Stream object.
Public method WriteXmlSchema(String, Converter<Type, String>) Writes the DataSet structure as an XML schema to a file.
Public method WriteXmlSchema(TextWriter, Converter<Type, String>) Writes the DataSet structure as an XML schema to the specified TextWriter.
Public method WriteXmlSchema(XmlWriter, Converter<Type, String>) Writes the DataSet structure as an XML schema to the specified XmlWriter.
Top

  NameDescription
Explicit interface implemetation Private method IListSource.GetList For a description of this member, see IListSource.GetList.
Explicit interface implemetation Private method IXmlSerializable.GetSchema For a description of this member, see IXmlSerializable.GetSchema.
Explicit interface implemetation Private method IXmlSerializable.ReadXml For a description of this member, see IXmlSerializable.ReadXml.
Explicit interface implemetation Private method IXmlSerializable.WriteXml For a description of this member, see IXmlSerializable.WriteXml.
Top

Community Additions

ADD
Show:
© 2014 Microsoft