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 (Constraint)

Adds the constraint to the collection. An ArgumentNullException is thrown if this column is null. 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 constraint As Constraint _
)
[C#]
public void Add(
   Constraint constraint
);
[C++]
public: void Add(
   Constraint* constraint
);
[JScript]
public function Add(
   constraint : Constraint
);

Parameters

constraint
The Constraint to add.

See Also

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