ConstraintCollection::Item Property (Int32)

 

Gets the Constraint from the collection at the specified index.

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

public:
property Constraint^ default[
	int index
] {
	Constraint^ get(int index);
}

Parameters

index
Type: System::Int32

The index of the constraint to return.

Property Value

Type: System.Data::Constraint^

The Constraint at the specified index.

Exception Condition
IndexOutOfRangeException

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
Show: