asp.net.ph

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 Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph