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)
Syntax
'Declaration
Public Shared Function IsLoginValid ( _
site As SPSite, _
strLoginName As String _
) As Boolean
'Usage
Dim site As SPSite
Dim strLoginName As String
Dim returnValue As Boolean
returnValue = SPUtility.IsLoginValid(site, _
strLoginName)
public static bool IsLoginValid(
SPSite site,
string strLoginName
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA Microsoft.SharePoint.SPSite object that represents the site.
strLoginName
Type: System.StringA string that contains the user name.
Return value
Type: System.Boolean
If true, the user name is valid; otherwise, false.