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
'Usage
Dim instance As SyncAdapterCollection
Dim tableName As String
Dim returnValue As Integer

returnValue = instance.IndexOf(tableName)
public int IndexOf(
    string tableName
)
public:
int IndexOf(
    String^ tableName
)
member IndexOf : 
        tableName:string -> int 
public function IndexOf(
    tableName : String
) : int

Parameters

Return Value

Type: System.Int32
The index position of tableName if that string is found; otherwise -1 if it is not.

See Also

Reference

SyncAdapterCollection Class

IndexOf Overload

Microsoft.Synchronization.Data.Server Namespace