Constraint.SetDataSet(DataSet) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the constraint's DataSet.
protected public:
void SetDataSet(System::Data::DataSet ^ dataSet);
protected internal void SetDataSet (System.Data.DataSet dataSet);
member this.SetDataSet : System.Data.DataSet -> unit
Protected Friend Sub SetDataSet (dataSet As DataSet)
Parameters
Examples
The following example uses the SetDataSet method to set the DataSet for a constraint.
UniqueConstraint uniqueConstraint = new UniqueConstraint(
DataSet1.Tables["Table1"].Columns["Column1"]);
Dim uniqueConstraint As New UniqueConstraint( _
DataSet1.Tables("Table1").Columns("Column1"))
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.