DataRelationCollection.Contains Method (String)


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

Verifies whether a DataRelation with the specific name (case insensitive) exists in the collection.

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

Public Overridable Function Contains (
	name As String
) As Boolean


Type: System.String

The name of the relation to find.

Return Value

Type: System.Boolean

true, if a relation with the specified name exists; otherwise false.

.NET Framework
Available since 1.1
Return to top