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.
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Parameters
- constraintName
- Type: System::String
The name of the SyncSchemaForeignKey object to search for in the SyncSchemaForeignKeys collection.
Return Value
Type: System::Int32The index position of constraintName if that string is found; if it is not found, -1.
| Exception | Condition |
|---|---|
| ArgumentNullException | constraintName is a nullptr or the data set has no constraints table. |
Show: