命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function SearchPrincipals ( _
web As SPWeb, _
input As String, _
scopes As SPPrincipalType, _
sources As SPPrincipalSource, _
usersContainer As SPUserCollection, _
maxCount As Integer, _
<OutAttribute> ByRef reachMaxCount As Boolean _
) As IList(Of SPPrincipalInfo)
用法
Dim web As SPWeb
Dim input As String
Dim scopes As SPPrincipalType
Dim sources As SPPrincipalSource
Dim usersContainer As SPUserCollection
Dim maxCount As Integer
Dim reachMaxCount As Boolean
Dim returnValue As IList(Of SPPrincipalInfo)
returnValue = SPUtility.SearchPrincipals(web, _
input, scopes, sources, usersContainer, _
maxCount, reachMaxCount)
public static IList<SPPrincipalInfo> SearchPrincipals(
SPWeb web,
string input,
SPPrincipalType scopes,
SPPrincipalSource sources,
SPUserCollection usersContainer,
int maxCount,
out bool reachMaxCount
)
参数
- web
类型:Microsoft.SharePoint.SPWeb
- input
类型:System.String
- usersContainer
类型:Microsoft.SharePoint.SPUserCollection
- maxCount
类型:System.Int32
- reachMaxCount
类型:System.Boolean
返回值
类型:System.Collections.Generic.IList<SPPrincipalInfo>
返回IList<T>。