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
)
member IndexOfServerColumn : 
        serverColumn:string -> int 
public function IndexOfServerColumn(
    serverColumn : String
) : int

Parameters

Return Value

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

See Also

Reference

SyncColumnMappingCollection Class

Microsoft.Synchronization.Data.Server Namespace