UniqueConstraint Constructor (String^, array<DataColumn^>^)
.NET Framework (current version)
Initializes a new instance of the UniqueConstraint class with the specified name and array of DataColumn objects.
Assembly: System.Data (in System.Data.dll)
Parameters
- name
-
Type:
System::String^
The name of the constraint.
- columns
-
Type:
array<System.Data::DataColumn^>^
The array of DataColumn objects to constrain.
The following example creates a DataTable with two columns, and adds a new UniqueConstraint to the ConstraintCollection.
.NET Framework
Available since 1.1
Available since 1.1
Show: