SPUtility.SearchPrincipals 方法 (SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Int32, Boolean)

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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)
用法
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
)

参数

返回值

类型:System.Collections.Generic.IList<SPPrincipalInfo>
返回IList<T>

另请参阅

引用

SPUtility 类

SPUtility 成员

SearchPrincipals 重载

Microsoft.SharePoint.Utilities 命名空间