SyncSchemaForeignKeys.IndexOf 方法

在给定约束名时搜索 SyncSchemaForeignKey 对象,并返回整个集合中第一个匹配项的从零开始的索引。

命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)

语法

声明
Public Function IndexOf ( _
    constraintName As String _
) As Integer
用法
Dim instance As SyncSchemaForeignKeys
Dim constraintName As String
Dim returnValue As Integer

returnValue = instance.IndexOf(constraintName)
public int IndexOf (
    string constraintName
)
public:
int IndexOf (
    String^ constraintName
)
public int IndexOf (
    String constraintName
)
public function IndexOf (
    constraintName : String
) : int

参数

返回值

如果找到该字符串,则为 constraintName 的索引位置;如果未找到该字符串,则为 -1。

请参阅

参考

SyncSchemaForeignKeys 类
SyncSchemaForeignKeys 成员
Microsoft.Synchronization.Data 命名空间