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
webApp
Typ: Microsoft.SharePoint.Administration.SPWebApplicationEine SharePoint Services-Anwendung, die in der Farm installiert ist.
urlZone
Typ: System.Nullable<SPUrlZone>Die Zone, von der die Anforderung, von SharePoint Services oder Null empfangen wurde.
input
Typ: System.StringDer angezeigte Name, e-Mail-Adresse oder Benutzernamen, die den Prinzipal identifiziert.
scopes
Typ: Microsoft.SharePoint.Utilities.SPPrincipalTypeEin SPPrincipalType -Maske, die angibt, welcher Principal aufgelöst werden.
sources
Typ: Microsoft.SharePoint.Utilities.SPPrincipalSourceEin SPPrincipalSource -Maske, die angibt, die Quelle in den Vorgang der Namensauflösung verwendet werden.
inputIsEmailOnly
Typ: System.BooleanEin 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.