SyncAdapterCollection.IndexOf Method (String)
Searches for a SyncAdapter object when given a table name, and returns the zero-based index of the first occurrence within the entire collection.
Namespace: Microsoft.Synchronization.Data.Server
Assembly: Microsoft.Synchronization.Data.Server (in microsoft.synchronization.data.server.dll)
Syntax
'Declaration
Public Function IndexOf ( _
tableName As String _
) As Integer
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 SyncAdapter object in the SyncAdapterCollection.
Return Value
The index position of tableName if that string is found; otherwise -1 if it is not.
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
SyncAdapterCollection Class
SyncAdapterCollection Members
Microsoft.Synchronization.Data.Server Namespace