SPUserCodePropertyCollection.IndexOf 方法

指定SPUserCodeProperty搜索并返回整个集合中的第一个匹配项的从零开始的索引。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function IndexOf ( _
    userCodeProperty As SPUserCodeProperty _
) As Integer
用法
Dim instance As SPUserCodePropertyCollection
Dim userCodeProperty As SPUserCodeProperty
Dim returnValue As Integer

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

参数

返回值

类型:System.Int32
整个集合内的第一个匹配项的从零开始索引如果找到 ;否则为为-1。

备注

此方法的第一个元素起始和结束的最后一个元素的集合中搜索SPUserCodeProperty

另请参阅

引用

SPUserCodePropertyCollection 类

SPUserCodePropertyCollection 成员

Microsoft.SharePoint.WebPartPages 命名空间