Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
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
'Usage
Dim instance As SyncSchemaForeignKeys
Dim constraintName As String
Dim returnValue As Integer
returnValue = instance.IndexOf(constraintName)
public int IndexOf(
string constraintName
)
public:
int IndexOf(
String^ constraintName
)
member IndexOf :
constraintName:string -> int
public function IndexOf(
constraintName : String
) : int
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | constraintName is a null reference (Nothing in Visual Basic) or the data set has no constraints table. |