SPWebPartCollection.IndexOf method
NOTE: This API is now obsolete.
已過時。傳回集合的索引指定的網頁組件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function IndexOf ( _
webPart As WebPart _
) As Integer
'用途
Dim instance As SPWebPartCollection
Dim webPart As WebPart
Dim returnValue As Integer
returnValue = instance.IndexOf(webPart)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public int IndexOf(
WebPart webPart
)
參數
webPart
Type: Microsoft.SharePoint.WebPartPages.WebPartMicrosoft.SharePoint.WebPartPages.WebPart物件,表示要傳回索引的 [網頁組件。
傳回值
Type: System.Int32
識別集合中的 [網頁組件為 32 位元整數。