ConstraintCollection.Item Property (Int32)


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

Gets the Constraint from the collection at the specified index.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

member Item : 
        index:int -> Constraint with get


Type: System.Int32

The index of the constraint to return.

Property Value

Type: System.Data.Constraint

The Constraint at the specified index.

Exception Condition

The index value is greater than the number of items in the collection.

Use the Contains method to test for the existence of a specific constraint.

The following example gets each Constraint from the ConstraintCollection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top