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)
Syntax
'Declaration
Public Function IndexOf ( _
constraintName As String _
) As Integer
public int IndexOf (
string constraintName
)
public:
int IndexOf (
String^ constraintName
)
public int IndexOf (
String constraintName
)
public function IndexOf (
constraintName : String
) : int
Parameters
- constraintName
The name of the SyncSchemaForeignKey object to search for in the SyncSchemaForeignKeys collection.
Return Value
The index position of constraintName if that string is found; if it is not found, -1.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).
Target Platforms
See Also
Reference
SyncSchemaForeignKeys Class
SyncSchemaForeignKeys Members
Microsoft.Synchronization.Data Namespace