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

Resolves principal information into an SPPrincipalInfo object.

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

public static SPPrincipalInfo ResolvePrincipal(
	SPWebApplication webApp,
	Nullable<SPUrlZone> urlZone,
	string input,
	SPPrincipalType scopes,
	SPPrincipalSource sources,
	bool inputIsEmailOnly


Type: Microsoft.SharePoint.Administration.SPWebApplication

A SharePoint Services application that is installed on the farm.

Type: System.Nullable<SPUrlZone>

The zone from which the request was received by SharePoint Services, or null.

Type: System.String

The display name, email address, or login name that identifies the principal.

Type: Microsoft.SharePoint.Utilities.SPPrincipalType

An SPPrincipalType mask that indicates the type of principal to be resolved.

Type: Microsoft.SharePoint.Utilities.SPPrincipalSource

An SPPrincipalSource mask that indicates the source to be used in the resolution process.

Type: System.Boolean

A Boolean value that indicates the fields to be matched during the search for the principal. A value of true indicates that the match can be made by using only the e-mail address of a principal. A value of false indicates that a match can be made by using the any one of the display name, the e-mail address, or the login name of a principal.

Return value

Type: Microsoft.SharePoint.Utilities.SPPrincipalInfo
An SPPrincipalInfo object that represents principal information.