共用方式為


SPPrefixCollection.Item property

取得集合中的指定索引處的前置詞物件。在 C# 中,這個屬性會是SPPrefixCollection類別的索引器。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    i As Integer _
) As SPPrefix
    Get
'用途
Dim instance As SPPrefixCollection
Dim i As Integer
Dim value As SPPrefix

value = instance(i)
public SPPrefix this[
    int i
] { get; }

參數

Property value

Type: Microsoft.SharePoint.Administration.SPPrefix
代表 [字首SPPrefix物件。

備註

如果指定的索引超出集合的索引的有效範圍,則Item屬性會擲回ArgumentOutOfRangeException 。

請參閱

參照

SPPrefixCollection class

SPPrefixCollection members

Microsoft.SharePoint.Administration namespace