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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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