aspxtreme

ConstraintCollection.Item Property

System.Data Namespace   ConstraintCollection Class


Returns the specified constraint from the collection.

Overload List

1. Returns the Constraint with the specified name.

2. Returns the Constraint at the specified index.


Example

The following example gets each Constraint from the ConstraintCollection.

NOTE: This example uses one of the overloaded versions of the Item property ( ConstraintCollection indexer ). For other examples that may be available, see the individual overload topics.

private void GetConstraint ( DataTable myTable ) {

   for ( int i = 0; i < myTable.Constraints.Count; i++ ) {
      Response.Write ( myTable.Constraints [ ].ConstraintName );
      Response.Write ( myTable.Constraints [ ].GetType ( ) );
   }
}
  C# VB

See Also

ConstraintCollection Members



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme