获取应用程序由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
)
参数
web
类型:Microsoft.SharePoint.SPWeb与角色相关联的站点。
roleName
类型:System.String要搜索的角色的名称。
maxCount
类型:System.Int32要检索的用户最大数量。
reachedMaxCount
类型:System.Boolean确定是否在结果中的元素数达到最大数量。不经初始化就传递此参数。
返回值
类型:[]
指定的角色中的用户的名称。
备注
此重写的基于声明的角色提供程序不是SPClaimsAuthRoleProvider ,由当前应用程序中获取用户。