SPUtility.SearchWindowsPrincipals Method
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Shared Function SearchWindowsPrincipals ( _
webApp As SPWebApplication, _
input As String, _
scopes As SPPrincipalType, _
maxCount As Integer, _
<OutAttribute> ByRef reachMaxCount As Boolean _
) As IList(Of SPPrincipalInfo)
'Usage
Dim webApp As SPWebApplication
Dim input As String
Dim scopes As SPPrincipalType
Dim maxCount As Integer
Dim reachMaxCount As Boolean
Dim returnValue As IList(Of SPPrincipalInfo)
returnValue = SPUtility.SearchWindowsPrincipals(webApp, _
input, scopes, maxCount, reachMaxCount)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public static IList<SPPrincipalInfo> SearchWindowsPrincipals(
SPWebApplication webApp,
string input,
SPPrincipalType scopes,
int maxCount,
out bool reachMaxCount
)
Parameters
- webApp
Type: Microsoft.SharePoint.Administration.SPWebApplication
- input
Type: System.String
- scopes
Type: Microsoft.SharePoint.Utilities.SPPrincipalType
- maxCount
Type: System.Int32
- reachMaxCount
Type: System.Boolean
Return Value
Type: System.Collections.Generic.IList<SPPrincipalInfo>