在给定表名称时搜索 SyncAdapter 对象,并返回整个集合中第一个匹配项的从零开始的索引。
命名空间: Microsoft.Synchronization.Data.Server
程序集: Microsoft.Synchronization.Data.Server(在 microsoft.synchronization.data.server.dll 中)
语法
声明
Public Function IndexOf ( _
tableName As String _
) As Integer
用法
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
参数
- tableName
表的名称。指定此名称以获取 SyncAdapterCollection 中关联 SyncAdapter 对象的索引。
返回值
如果找到该字符串,则为 tableName 的索引位置;如果未找到,则为 -1。
请参阅
参考
SyncAdapterCollection 类
SyncAdapterCollection 成员
Microsoft.Synchronization.Data.Server 命名空间