DataRelationCollection.IndexOf Method (DataRelation)

 
System_CAPS_noteNote

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

Gets the index of the specified DataRelation object.

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

abstract IndexOf : 
        relation:DataRelation -> int
override IndexOf : 
        relation:DataRelation -> int

Parameters

relation
Type: System.Data.DataRelation

The relation to search for.

Return Value

Type: System.Int32

The 0-based index of the relation, or -1 if the relation is not found in the collection.

.NET Framework
Available since 1.1
Return to top
Show: