NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataSet.GetChanges (DataRowState)

Returns a copy of the DataSet containing all changes made to it since it was last loaded, or since AcceptChanges was called, filtered by DataRowState.

[Visual Basic]
Overloads Public Function GetChanges( _
   ByVal rowStates As DataRowState _
) As DataSet
[C#]
public DataSet GetChanges(
   DataRowState rowStates
);
[C++]
public: DataSet* GetChanges(
   DataRowState rowStates
);
[JScript]
public function GetChanges(
   rowStates : DataRowState
) : DataSet;

Parameters

rowStates
One of the DataRowState values: Detached, Unchanged, New, Deleted, and Modified.

Return Value

A filtered copy of the DataSet that can have actions performed on it, and subsequently be merged back in using Merge. If no rows of the desired DataRowState are found, the method returns a null reference (in Visual Basic Nothing).

Remarks

This copy is particularly designed so that it can be merged back in to this original dataSet. Relationship constraints may cause parent rows not of the indicated rowState to also be included.

This returned copy is designed to be merged back in to this original DataSet. Relationship constraints may cause parent rows marked Unchanged to be included. If no rows of the desired DataRowState are found, the GetChanges method returns null.

See Also

DataSet Class | DataSet Members | System.Data Namespace | DataSet.GetChanges Overload List