共用方式為


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

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