Freigeben über


SyncAdapterCollection.IndexOf-Methode (String)

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

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
)
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

SyncAdapterCollection-Klasse
SyncAdapterCollection-Member
Microsoft.Synchronization.Data.Server-Namespace