共用方式為


SPUtility.SearchWindowsPrincipals method

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
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)
'用途
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)
public static IList<SPPrincipalInfo> SearchWindowsPrincipals(
    SPWebApplication webApp,
    string input,
    SPPrincipalType scopes,
    int maxCount,
    out bool reachMaxCount
)

參數

傳回值

Type: System.Collections.Generic.IList<SPPrincipalInfo>

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace