Dela via


DbSyncColumnMappingCollection.IndexOfRemoteColumn Method

Searches for a DbSyncColumnMapping object when given a remote column name, and returns the zero-based index of the first occurrence within the whole collection.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Function IndexOfRemoteColumn ( _
    remoteColumn As String _
) As Integer
'Usage
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

Parameters

  • remoteColumn
    Type: System.String
    The name of the column in the remote database.

Return Value

Type: System.Int32
The index position of remotecolumn if that string is found; otherwise -1.

See Also

Reference

DbSyncColumnMappingCollection Class

Microsoft.Synchronization.Data Namespace