共用方式為


SPUserCollection.Item property (Int32)

取得集合中指定之索引處的使用者物件。在 C# 中,這個屬性會是SPUserCollection類別的索引子。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPUser
    Get
'用途
Dim instance As SPUserCollection
Dim index As Integer
Dim value As SPUser

value = instance(index)
public SPUser this[
    int index
] { get; }

參數

  • index
    Type: System.Int32

    指定的索引為 32 位元整數。

Property value

Type: Microsoft.SharePoint.SPUser
Microsoft.SharePoint.SPUser 物件,表示使用者。

備註

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

請參閱

參照

SPUserCollection class

SPUserCollection members

Item overload

Microsoft.SharePoint namespace