SPUtility.ResolveWindowsPrincipal Method (SPWeb, SPWebApplication, String, SPPrincipalType, Boolean)

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
<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
'Usage
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
[DirectoryServicesPermissionAttribute(SecurityAction.Assert, Unrestricted = true)]
public static SPPrincipalInfo ResolveWindowsPrincipal(
    SPWeb web,
    SPWebApplication webApp,
    string input,
    SPPrincipalType scopes,
    bool inputIsEmailOnly
)

Parameters

Return Value

Type: Microsoft.SharePoint.Utilities.SPPrincipalInfo
Returns SPPrincipalInfo.

See Also

Reference

SPUtility Class

SPUtility Members

ResolveWindowsPrincipal Overload

Microsoft.SharePoint.Utilities Namespace