SPUtility.ResolvePrincipal-Methode (SPWebApplication, Nullable<SPUrlZone>, String, SPPrincipalType, SPPrincipalSource, Boolean)

Löst die wichtigsten Informationen in ein SPPrincipalInfo -Objekt.

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

Syntax

'Declaration
Public Shared Function ResolvePrincipal ( _
    webApp As SPWebApplication, _
    urlZone As Nullable(Of SPUrlZone), _
    input As String, _
    scopes As SPPrincipalType, _
    sources As SPPrincipalSource, _
    inputIsEmailOnly As Boolean _
) As SPPrincipalInfo
'Usage
Dim webApp As SPWebApplication
Dim urlZone As Nullable(Of SPUrlZone)
Dim input As String
Dim scopes As SPPrincipalType
Dim sources As SPPrincipalSource
Dim inputIsEmailOnly As Boolean
Dim returnValue As SPPrincipalInfo

returnValue = SPUtility.ResolvePrincipal(webApp, _
    urlZone, input, scopes, sources, inputIsEmailOnly)
public static SPPrincipalInfo ResolvePrincipal(
    SPWebApplication webApp,
    Nullable<SPUrlZone> urlZone,
    string input,
    SPPrincipalType scopes,
    SPPrincipalSource sources,
    bool inputIsEmailOnly
)

Parameter

  • urlZone
    Typ: System.Nullable<SPUrlZone>

    Die Zone, von der die Anforderung, von SharePoint Services oder Null empfangen wurde.

  • input
    Typ: System.String

    Der angezeigte Name, e-Mail-Adresse oder Benutzernamen, die den Prinzipal identifiziert.

  • inputIsEmailOnly
    Typ: System.Boolean

    Ein boolescher Wert, der angibt, die Felder aus, die während der Suche nach der Prinzipal zugeordnet werden. Der Wert true gibt an, dass die Übereinstimmung mit der E-mail-Adresse eines Principals vorgenommen werden kann. Der Wert false gibt an, dass eine Übereinstimmung mit der eine den Anzeigenamen, die e-Mail-Adresse oder der Anmeldename eines Principals vorgenommen werden kann.

Rückgabewert

Typ: Microsoft.SharePoint.Utilities.SPPrincipalInfo
Ein SPPrincipalInfo -Objekt, das wichtigsten Informationen darstellt.

Siehe auch

Referenz

SPUtility Klasse

SPUtility-Member

ResolvePrincipal-Überladung

Microsoft.SharePoint.Utilities-Namespace