共用方式為


DbSyncAdapterCollection.IndexOf 方法 (String)

在給定資料表名稱時搜尋 DbSyncAdapter 物件,並傳回整個集合中第一次發生之以零起始的索引。

命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)

語法

'宣告
Public Function IndexOf ( _
    tableName As String _
) As Integer
'用途
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

參數

傳回值

如果有找到該字串,則為 tableName 的索引位置,否則為 -1。

請參閱

參考

DbSyncAdapterCollection 類別
DbSyncAdapterCollection 成員
Microsoft.Synchronization.Data 命名空間