IndexOfRemoteColumn 方法
在给定远程列名时搜索 DbSyncColumnMapping 对象,并返回整个集合中第一个匹配项的从零开始的索引。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 Microsoft.Synchronization.Data.dll 中)
语法
声明
Public Function IndexOfRemoteColumn ( _
remoteColumn As String _
) As Integer
用法
Dim instance As DbSyncColumnMappingCollection
Dim remoteColumn As String
Dim returnValue As Integer
returnValue = instance.IndexOfRemoteColumn(remoteColumn)
public int IndexOfRemoteColumn(
string remoteColumn
)
public:
int IndexOfRemoteColumn(
String^ remoteColumn
)
member IndexOfRemoteColumn :
remoteColumn:string -> int
public function IndexOfRemoteColumn(
remoteColumn : String
) : int
参数
- remoteColumn
类型:System. . :: . .String
远程数据库中的列的名称。
返回值
类型:System. . :: . .Int32
如果找到该字符串,则为 remotecolumn 的索引位置;否则为 -1。
请参阅
参考
DbSyncColumnMappingCollection类