SPUserCollection.Item 属性 (Int32)

获取集合中指定索引处的用户对象。在 C# 中,此属性是SPUserCollection类的索引器。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.Int32

    一个 32 整数,它指定的索引。

属性值

类型:Microsoft.SharePoint.SPUser
Microsoft.SharePoint.SPUser 对象,该对象表示的用户。

备注

如果指定的索引超出索引的集合的有效范围, Item属性将引发ArgumentOutOfRangeException 。

另请参阅

引用

SPUserCollection 类

SPUserCollection 成员

Item 重载

Microsoft.SharePoint 命名空间