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: