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

Resolves user information (such as email address or display name) into an SPPrincipalInfo object for Windows account.

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

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