Export (0) Print
Expand All

DataSet Methods

The methods of the DataSet class are listed here. For a complete list of DataSet class members, see the DataSet Members topic.

Public Methods

public methodAcceptChanges

Supported by the .NET Compact Framework.

Commits all the changes made to this DataSet since it was loaded or since the last time AcceptChanges was called.
public methodClear

Supported by the .NET Compact Framework.

Clears the DataSet of any data by removing all rows in all tables.
public methodClone

Supported by the .NET Compact Framework.

Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data.
public methodCopy Copies both the structure and data for this DataSet.
public methodDispose (inherited from MarshalByValueComponent) Overloaded. Releases the resources used by the MarshalByValueComponent.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetChanges Overloaded. Gets a copy of the DataSet containing all changes made to it since it was last loaded, or since AcceptChanges was called.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetService (inherited from MarshalByValueComponent) Gets the implementer of the IServiceProvider.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetXml

Supported by the .NET Compact Framework.

Returns the XML representation of the data stored in the DataSet.
public methodGetXmlSchema

Supported by the .NET Compact Framework.

Returns the XSD schema for the XML representation of the data stored in the DataSet.
public methodHasChanges

Supported by the .NET Compact Framework.

Overloaded. Gets a value indicating whether the DataSet has changes, including new, deleted, or modified rows.
public methodInferXmlSchema

Supported by the .NET Compact Framework.

Overloaded. Applies XML schema to the DataSet.
public methodMerge Overloaded. Merges a specified DataSet, DataTable, or array of DataRow objects into the current DataSet or DataTable.
public methodReadXml

Supported by the .NET Compact Framework.

Overloaded. Reads XML schema and data into the DataSet.
public methodReadXmlSchema

Supported by the .NET Compact Framework.

Overloaded. Reads an XML schema into the DataSet.
public methodRejectChanges

Supported by the .NET Compact Framework.

Rolls back all the changes made to the DataSet since it was created, or since the last time DataSet.AcceptChanges was called.
public methodReset

Supported by the .NET Compact Framework.

Resets the DataSet to its original state. Subclasses should override Reset to restore a DataSet to its original state.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWriteXml

Supported by the .NET Compact Framework.

Overloaded. Writes XML data, and optionally the schema, from the DataSet.
public methodWriteXmlSchema

Supported by the .NET Compact Framework.

Overloaded. Writes the DataSet structure as an XML schema.

Protected Methods

protected methodDispose (inherited from MarshalByValueComponent) Overloaded. Releases the resources used by the MarshalByValueComponent.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodOnPropertyChanging Raises the OnPropertyChanging event.
protected methodOnRemoveRelation

Supported by the .NET Compact Framework.

Occurs when a DataRelation object is removed from a DataTable.
protected methodOnRemoveTable

Supported by the .NET Compact Framework.

Occurs when a DataTable is removed from a DataSet.
protected methodRaisePropertyChanging Sends notification that the specified DataSet property is about to change.
protected methodShouldSerializeRelations

Supported by the .NET Compact Framework.

Gets a value indicating whether Relations property should be persisted.
protected methodShouldSerializeTables

Supported by the .NET Compact Framework.

Gets a value indicating whether Tables property should be persisted.

See Also

DataSet Class | System.Data Namespace

Show:
© 2014 Microsoft