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
)
参数
value
类型:Microsoft.SharePoint.WebPartPages.SPWebPartConnection要确定指定SPWebPartConnectionSPWebPartConnectionCollection中的索引的连接。
返回值
类型:System.Int32
整个SPWebPartConnectionCollection内的值的第一个匹配项的从零开始索引如果找到 ;否则为为-1。
备注
使用此方法来确定指定SPWebPartConnectionSPWebPartConnectionCollection集合中的索引。
另请参阅
引用
SPWebPartConnectionCollection 类