Share via


PSDataSet.SplitChanges<TDataSet> method

Splits accumulated changes to a typed data table into separate typed data sets.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function SplitChanges(Of TDataSet As DataSet) ( _
    ds As TDataSet, _
    dt As DataTable _
) As IEnumerable(Of TDataSet)
'Usage
Dim ds As TDataSet
Dim dt As DataTable
Dim returnValue As IEnumerable(Of TDataSet)

returnValue = ds.SplitChanges(dt)
public static IEnumerable<TDataSet> SplitChanges<TDataSet>(
    this TDataSet ds,
    DataTable dt
)
where TDataSet : DataSet

Type parameters

  • TDataSet
    A typed data set type.

Parameters

  • ds
    Type: TDataSet

    The data set that contains the changes.

Return value

Type: System.Collections.Generic.IEnumerable<TDataSet>
An enumerator for a dataset of a specified type.

Usage note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=office.15) or https://msdn.microsoft.com/en-us/library/bb383977(v=office.15).

See also

Reference

PSDataSet class

PSDataSet members

Microsoft.Office.Project.Server.Library namespace