Export (0) Print
Expand All

Constraint.SetDataSet Method

Sets the constraint's DataSet.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)

'Declaration
Protected Friend Sub SetDataSet ( _
	dataSet As DataSet _
)

Parameters

dataSet
Type: System.Data.DataSet

The DataSet to which this constraint will belong.

The following example uses the SetDataSet method to set the DataSet for a constraint.

Dim uniqueConstraint As New UniqueConstraint( _
    DataSet1.Tables("Table1").Columns("Column1"))

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft