SPUserCollection.Item 属性 (String)

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

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

语法

声明
Public ReadOnly Default Property Item ( _
    loginName As String _
) As SPUser
    Get
用法
Dim instance As SPUserCollection
Dim loginName As String
Dim value As SPUser

value = instance(loginName)
public SPUser this[
    string loginName
] { get; }

参数

  • loginName
    类型:System.String

    一个字符串,包含用户名称。

属性值

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

另请参阅

引用

SPUserCollection 类

SPUserCollection 成员

Item 重载

Microsoft.SharePoint 命名空间