Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPUtility.IsLoginValid method (SPSite, String)

Uses the specified site collection to determine whether the specified user name is valid.

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

public static bool IsLoginValid(
	SPSite site,
	string strLoginName
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

A Microsoft.SharePoint.SPSite object that represents the site.

strLoginName
Type: System.String

A string that contains the user name.

Return value

Type: System.Boolean
If true, the user name is valid; otherwise, false.
Show:
© 2015 Microsoft