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)
Available in Sandboxed Solutions: No

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