Sdílet prostřednictvím


SyncTableCollection.IndexOf Method (String)

Searches for a SyncTable object when given a table name, and returns the zero-based index of the first occurrence within the entire collection.

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

Parameters

  • tableName
    The name of the SyncTable object to find in the collection.

Return Value

The index position of tableName if that string is found; otherwise -1.

See Also

Reference

SyncTableCollection Class
SyncTableCollection Members
Microsoft.Synchronization.Data Namespace