SPUtility.SearchPrincipals Method

Definition

Overloads

SearchPrincipals(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)
SearchPrincipals(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Int32, Boolean)

SearchPrincipals(SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)

public:
 static System::Collections::Generic::IList<Microsoft::SharePoint::Utilities::SPPrincipalInfo ^> ^ SearchPrincipals(Microsoft::SharePoint::Administration::SPWebApplication ^ webApp, Nullable<Microsoft::SharePoint::Administration::SPUrlZone> urlZone, System::String ^ input, Microsoft::SharePoint::Utilities::SPPrincipalType scopes, Microsoft::SharePoint::Utilities::SPPrincipalSource sources, int maxCount, [Runtime::InteropServices::Out] bool % reachMaxCount);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.InterfaceType)]
public static System.Collections.Generic.IList<Microsoft.SharePoint.Utilities.SPPrincipalInfo> SearchPrincipals (Microsoft.SharePoint.Administration.SPWebApplication webApp, Nullable<Microsoft.SharePoint.Administration.SPUrlZone> urlZone, string input, Microsoft.SharePoint.Utilities.SPPrincipalType scopes, Microsoft.SharePoint.Utilities.SPPrincipalSource sources, int maxCount, out bool reachMaxCount);
static member SearchPrincipals : Microsoft.SharePoint.Administration.SPWebApplication * Nullable<Microsoft.SharePoint.Administration.SPUrlZone> * string * Microsoft.SharePoint.Utilities.SPPrincipalType * Microsoft.SharePoint.Utilities.SPPrincipalSource * int *  -> System.Collections.Generic.IList<Microsoft.SharePoint.Utilities.SPPrincipalInfo>
Public Shared Function SearchPrincipals (webApp As SPWebApplication, urlZone As Nullable(Of SPUrlZone), input As String, scopes As SPPrincipalType, sources As SPPrincipalSource, maxCount As Integer, ByRef reachMaxCount As Boolean) As IList(Of SPPrincipalInfo)

Parameters

urlZone
Nullable<SPUrlZone>
input
String
maxCount
Int32
reachMaxCount
Boolean

Returns

IList<SPPrincipalInfo>
Attributes
SubsetCallableExcludeMemberAttribute

Applies to

SearchPrincipals(SPWeb, String, SPPrincipalType, SPPrincipalSource, SPUserCollection, Int32, Boolean)

public:
 static System::Collections::Generic::IList<Microsoft::SharePoint::Utilities::SPPrincipalInfo ^> ^ SearchPrincipals(Microsoft::SharePoint::SPWeb ^ web, System::String ^ input, Microsoft::SharePoint::Utilities::SPPrincipalType scopes, Microsoft::SharePoint::Utilities::SPPrincipalSource sources, Microsoft::SharePoint::SPUserCollection ^ usersContainer, int maxCount, [Runtime::InteropServices::Out] bool % reachMaxCount);
[Microsoft.SharePoint.Client.SubsetCallableExcludeMember(Microsoft.SharePoint.Client.SubsetCallableExcludeMemberType.InterfaceType)]
public static System.Collections.Generic.IList<Microsoft.SharePoint.Utilities.SPPrincipalInfo> SearchPrincipals (Microsoft.SharePoint.SPWeb web, string input, Microsoft.SharePoint.Utilities.SPPrincipalType scopes, Microsoft.SharePoint.Utilities.SPPrincipalSource sources, Microsoft.SharePoint.SPUserCollection usersContainer, int maxCount, out bool reachMaxCount);
static member SearchPrincipals : Microsoft.SharePoint.SPWeb * string * Microsoft.SharePoint.Utilities.SPPrincipalType * Microsoft.SharePoint.Utilities.SPPrincipalSource * Microsoft.SharePoint.SPUserCollection * int *  -> System.Collections.Generic.IList<Microsoft.SharePoint.Utilities.SPPrincipalInfo>
Public Shared Function SearchPrincipals (web As SPWeb, input As String, scopes As SPPrincipalType, sources As SPPrincipalSource, usersContainer As SPUserCollection, maxCount As Integer, ByRef reachMaxCount As Boolean) As IList(Of SPPrincipalInfo)

Parameters

web
SPWeb
input
String
usersContainer
SPUserCollection
maxCount
Int32
reachMaxCount
Boolean

Returns

IList<SPPrincipalInfo>
Attributes
SubsetCallableExcludeMemberAttribute

Applies to