Constraint.SetDataSet Method (DataSet)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: