SyncSchemaForeignKeys::IndexOf Method

Searches for a SyncSchemaForeignKey object when given a constraint name, and returns the zero-based index of the first occurrence within the entire collection.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

public:
int IndexOf(
	String^ constraintName
)

Parameters

constraintName
Type: System::String
The name of the SyncSchemaForeignKey object to search for in the SyncSchemaForeignKeys collection.

Return Value

Type: System::Int32
The index position of constraintName if that string is found; if it is not found, -1.

ExceptionCondition
ArgumentNullException

constraintName is a nullptr or the data set has no constraints table.

Show: