DbSyncAdapterCollection.IndexOf Method (String)
Searches for a DbSyncAdapter object when given a table name, and returns the zero-based index of the first occurrence within the whole collection.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Function IndexOf ( _
tableName As String _
) As Integer
'Usage
Dim instance As DbSyncAdapterCollection
Dim tableName As String
Dim returnValue As Integer
returnValue = instance.IndexOf(tableName)
public int IndexOf (
string tableName
)
public:
int IndexOf (
String^ tableName
)
public int IndexOf (
String tableName
)
public function IndexOf (
tableName : String
) : int
Parameters
- tableName
The name of the table. Specify the name to get the index of the associated DbSyncAdapter object in DbSyncAdapterCollection.
Return Value
The index position of tableName if that string is found; otherwise -1 if it is not.
See Also
Reference
DbSyncAdapterCollection Class
DbSyncAdapterCollection Members
Microsoft.Synchronization.Data Namespace