SetDataSet Method
Collapse the table of content
Expand the table of content

Constraint.SetDataSet Method (DataSet)

 
Use BaseTrue

Sets the constraint's DataSet.

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

protected internal void SetDataSet(
	DataSet 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.

UniqueConstraint uniqueConstraint = new UniqueConstraint(
    DataSet1.Tables["Table1"].Columns["Column1"]);

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft