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

  • 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.

See also

Reference

SPUtility class

SPUtility members

IsLoginValid overload

Microsoft.SharePoint.Utilities namespace