SPUtility.SearchPrincipals - Méthode (SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)
Espace de noms : Microsoft.SharePoint.Utilities
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Shared Function SearchPrincipals ( _
webApp As SPWebApplication, _
urlZone As Nullable(Of SPUrlZone), _
input As String, _
scopes As SPPrincipalType, _
sources As SPPrincipalSource, _
maxCount As Integer, _
<OutAttribute> ByRef reachMaxCount As Boolean _
) As IList(Of SPPrincipalInfo)
'Utilisation
Dim webApp As SPWebApplication
Dim urlZone As Nullable(Of SPUrlZone)
Dim input As String
Dim scopes As SPPrincipalType
Dim sources As SPPrincipalSource
Dim maxCount As Integer
Dim reachMaxCount As Boolean
Dim returnValue As IList(Of SPPrincipalInfo)
returnValue = SPUtility.SearchPrincipals(webApp, _
urlZone, input, scopes, sources, maxCount, _
reachMaxCount)
public static IList<SPPrincipalInfo> SearchPrincipals(
SPWebApplication webApp,
Nullable<SPUrlZone> urlZone,
string input,
SPPrincipalType scopes,
SPPrincipalSource sources,
int maxCount,
out bool reachMaxCount
)
Paramètres
- webApp
Type : Microsoft.SharePoint.Administration.SPWebApplication
- urlZone
Type : System.Nullable<SPUrlZone>
- input
Type : System.String
- scopes
Type : Microsoft.SharePoint.Utilities.SPPrincipalType
- sources
Type : Microsoft.SharePoint.Utilities.SPPrincipalSource
- maxCount
Type : System.Int32
- reachMaxCount
Type : System.Boolean
Valeur renvoyée
Type : System.Collections.Generic.IList<SPPrincipalInfo>
Cette propriété renvoie IList<T>.