Freigeben über


DbSyncAdapterCollection.IndexOf-Methode (String)

Sucht nach einem DbSyncAdapter-Objekt, wenn ein Tabellenname angegeben wird, und gibt den nullbasierten Index des ersten Vorkommens innerhalb der gesamten Auflistung zurück.

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

Parameter

Rückgabewert

Die Indexposition von tableName, wenn diese Zeichenfolge gefunden wird, andernfalls -1.

Siehe auch

Verweis

DbSyncAdapterCollection-Klasse
DbSyncAdapterCollection-Member
Microsoft.Synchronization.Data-Namespace