SPWebPartConnectionCollection.IndexOf 方法

确定指定SPWebPartConnectionSPWWebPartConnectionCollection集合中的索引。

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

语法

声明
Public Function IndexOf ( _
    value As SPWebPartConnection _
) As Integer
用法
Dim instance As SPWebPartConnectionCollection
Dim value As SPWebPartConnection
Dim returnValue As Integer

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

参数

返回值

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

备注

使用此方法来确定指定SPWebPartConnectionSPWebPartConnectionCollection集合中的索引。

另请参阅

引用

SPWebPartConnectionCollection 类

SPWebPartConnectionCollection 成员

Microsoft.SharePoint.WebPartPages 命名空间