DataRelationCollection::IndexOf Method (DataRelation^)

 

Gets the index of the specified DataRelation object.

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

public:
virtual int IndexOf(
	DataRelation^ relation
)

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: