asp.net.ph

ConstraintCollection.Contains Method

System.Data Namespace   ConstraintCollection Class


Indicates whether the Constraint, specified by name, exists in the collection.

[ VB ]
Public Function Contains ( _
   ByVal name As String _
) As Boolean

[ C# ]
public bool Contains (
   String name
);

[ C++ ]
public: bool Contains (
   String* name
);

[ JScript ]
public function Contains (
   name : String
) : Boolean

Parameters

name
The ConstraintName of the constraint.

Return Value

true if the collection contains the specified constraint; otherwise, false.

Remarks

Use the Contains method to determine if the specified Constraint exists before attempting to remove it from the collection. You can also use the CanRemove method to determine if a Constraint can be removed.

See Also

ConstraintCollection Members   Remove 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