Compartilhar via


SyncParameterCollection.IndexOf Method (String)

Searches for a SyncParameter object when given a parameter name, and returns the zero-based index of the first occurrence within the entire collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    parameterName As String _
) As Integer
public int IndexOf (
    string parameterName
)
public:
int IndexOf (
    String^ parameterName
)
public int IndexOf (
    String parameterName
)
public function IndexOf (
    parameterName : String
) : int

Parameters

Return Value

The index position of parameterName if that string is found; otherwise -1.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).

Target Platforms

See Also

Reference

SyncParameterCollection Class
SyncParameterCollection Members
Microsoft.Synchronization.Data Namespace