Share via


SyncColumnMappingCollection.IndexOfServerColumn Method

Searches for a SyncColumnMapping object when given a column name. Returns the zero-based index of the first occurrence within the entire collection.

Namespace: Microsoft.Synchronization.Data.Server
Assembly: Microsoft.Synchronization.Data.Server (in microsoft.synchronization.data.server.dll)

Syntax

'Declaration
Public Function IndexOfServerColumn ( _
    serverColumn As String _
) As Integer
'Usage
Dim instance As SyncColumnMappingCollection
Dim serverColumn As String
Dim returnValue As Integer

returnValue = instance.IndexOfServerColumn(serverColumn)
public int IndexOfServerColumn (
    string serverColumn
)
public:
int IndexOfServerColumn (
    String^ serverColumn
)
public int IndexOfServerColumn (
    String serverColumn
)
public function IndexOfServerColumn (
    serverColumn : String
) : int

Parameters

Return Value

The index position of serverColumn if that string is found. Returns -1 if the string is not found.

See Also

Reference

SyncColumnMappingCollection Class
SyncColumnMappingCollection Members
Microsoft.Synchronization.Data.Server Namespace