SPClaimsAuthRoleProvider.GetUsersInRole 方法 (SPWeb, String, Int32, Boolean)

获取应用程序由ApplicationName属性指定的角色中的用户列表。

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

语法

声明
Public Overridable Function GetUsersInRole ( _
    web As SPWeb, _
    roleName As String, _
    maxCount As Integer, _
    <OutAttribute> ByRef reachedMaxCount As Boolean _
) As SPPrincipalInfo()
用法
Dim instance As SPClaimsAuthRoleProvider
Dim web As SPWeb
Dim roleName As String
Dim maxCount As Integer
Dim reachedMaxCount As Boolean
Dim returnValue As SPPrincipalInfo()

returnValue = instance.GetUsersInRole(web, _
    roleName, maxCount, reachedMaxCount)
public virtual SPPrincipalInfo[] GetUsersInRole(
    SPWeb web,
    string roleName,
    int maxCount,
    out bool reachedMaxCount
)

参数

  • maxCount
    类型:System.Int32

    要检索的用户最大数量。

  • reachedMaxCount
    类型:System.Boolean

    确定是否在结果中的元素数达到最大数量。不经初始化就传递此参数。

返回值

类型:[]
指定的角色中的用户的名称。

备注

此重写的基于声明的角色提供程序不是SPClaimsAuthRoleProvider ,由当前应用程序中获取用户。

另请参阅

引用

SPClaimsAuthRoleProvider 类

SPClaimsAuthRoleProvider 成员

GetUsersInRole 重载

Microsoft.SharePoint.Administration.Claims 命名空间