Compartir a través de


SyncAdapterCollection.IndexOf Método (String)

Busca un objeto SyncAdapter al proporcionar un nombre de tabla, y devuelve el índice de base cero de la primera aparición de dicho objeto en la colección.

Espacio de nombres: Microsoft.Synchronization.Data.Server
Ensamblado: Microsoft.Synchronization.Data.Server (en microsoft.synchronization.data.server.dll)

Sintaxis

'Declaración
Public Function IndexOf ( _
    tableName As String _
) As Integer
'Uso
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

Parámetros

Valor devuelto

Posición del índice de tableName en caso de encontrar la cadena especificada; -1 en caso contrario.

Vea también

Referencia

SyncAdapterCollection Clase
SyncAdapterCollection Miembros
Microsoft.Synchronization.Data.Server Espacio de nombres