SPWebPartCollection.Item property (Int32)
NOTE: This API is now obsolete.
已過時。取得網頁組件物件在集合中指定之索引處。在 C# 中,這個屬性會是SPWebPartCollection類別的索引子。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Default Property Item ( _
index As Integer _
) As WebPart
Get
'用途
Dim instance As SPWebPartCollection
Dim index As Integer
Dim value As WebPart
value = instance(index)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public WebPart this[
int index
] { get; }
參數
- index
Type: System.Int32
Property value
Type: Microsoft.SharePoint.WebPartPages.WebPart
Microsoft.SharePoint.WebPartPages.WebPart 物件,表示 [網頁組件。
備註
如果指定的索引超出索引集合的有效範圍內的 [ Item ] 屬性,則會擲回ArgumentOutOfRangeException 。