NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ConstraintsCollection.Add (String, DataColumn, Boolean)

Constructs a new UniqueConstraint, and adds the constraint to the collection. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.

[Visual Basic]
Overloads Public Sub Add( _
   ByVal name As String, _
   ByVal column As DataColumn, _
   ByVal primaryKey As Boolean _
)
[C#]
public void Add(
   string name,
   DataColumn column,
   bool primaryKey
);
[C++]
public: void Add(
   String* name,
   DataColumn* column,
   bool primaryKey
);
[JScript]
public function Add(
   name : String,
   column : DataColumn,
   primaryKey : Boolean
);

Parameters

name
[To be supplied.]
column
[To be supplied.]
primaryKey
[To be supplied.]

See Also

ConstraintsCollection Class | ConstraintsCollection Members | System.Data Namespace | ConstraintsCollection.Add Overload List