Compartir a través de


(SPWeb, SPWebApplication, String, SPPrincipalType, Boolean) del método SPUtility.ResolveWindowsPrincipal

Resuelve la información del usuario (por ejemplo, como nombre para mostrar o dirección de correo electrónico) en un objeto SPPrincipalInfo para la cuenta de Windows.

Espacio de nombres:  Microsoft.SharePoint.Utilities
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
<DirectoryServicesPermissionAttribute(SecurityAction.Assert, Unrestricted := True)> _
Public Shared Function ResolveWindowsPrincipal ( _
    web As SPWeb, _
    webApp As SPWebApplication, _
    input As String, _
    scopes As SPPrincipalType, _
    inputIsEmailOnly As Boolean _
) As SPPrincipalInfo
'Uso
Dim web As SPWeb
Dim webApp As SPWebApplication
Dim input As String
Dim scopes As SPPrincipalType
Dim inputIsEmailOnly As Boolean
Dim returnValue As SPPrincipalInfo

returnValue = SPUtility.ResolveWindowsPrincipal(web, _
    webApp, input, scopes, inputIsEmailOnly)
[DirectoryServicesPermissionAttribute(SecurityAction.Assert, Unrestricted = true)]
public static SPPrincipalInfo ResolveWindowsPrincipal(
    SPWeb web,
    SPWebApplication webApp,
    string input,
    SPPrincipalType scopes,
    bool inputIsEmailOnly
)

Parámetros

Valor devuelto

Tipo: Microsoft.SharePoint.Utilities.SPPrincipalInfo
Devuelve SPPrincipalInfo.

Vea también

Referencia

clase SPUtility

Miembros SPUtility

Sobrecarga ResolveWindowsPrincipal

Espacio de nombres Microsoft.SharePoint.Utilities