Share via


SPWebPartConnectionCollection.IndexOf method

Determines the index of the specified SPWebPartConnection in the SPWWebPartConnectionCollection collection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    value As SPWebPartConnection _
) As Integer
'Usage
Dim instance As SPWebPartConnectionCollection
Dim value As SPWebPartConnection
Dim returnValue As Integer

returnValue = instance.IndexOf(value)
public int IndexOf(
    SPWebPartConnection value
)

Parameters

Return value

Type: System.Int32
The zero-based index of the first occurrence of the value within the entire SPWebPartConnectionCollection if found; otherwise, -1.

Remarks

Use this method to determine the index of the specified SPWebPartConnection in the SPWebPartConnectionCollection collection.

See also

Reference

SPWebPartConnectionCollection class

SPWebPartConnectionCollection members

Microsoft.SharePoint.WebPartPages namespace