SPUserCodePropertyCollection.IndexOf method

Searches for the specified SPUserCodeProperty and returns the zero-based index of the first occurrence within the entire collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    userCodeProperty As SPUserCodeProperty _
) As Integer
'Usage
Dim instance As SPUserCodePropertyCollection
Dim userCodeProperty As SPUserCodeProperty
Dim returnValue As Integer

returnValue = instance.IndexOf(userCodeProperty)
public int IndexOf(
    SPUserCodeProperty userCodeProperty
)

Parameters

Return value

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

Remarks

This method searches the SPUserCodeProperty in the collection starting at the first element and ending at the last element.

See also

Reference

SPUserCodePropertyCollection class

SPUserCodePropertyCollection members

Microsoft.SharePoint.WebPartPages namespace