SPUtility.IsLoginValid-Methode (SPGlobalAdmin, String, Boolean)
Verwendet das angegebene globale Verwaltung-Objekt um zu bestimmen, ob der angegebene Benutzername gültig ist und ob es ein Benutzerkonto entspricht.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsLoginValid ( _
globalAdmin As SPGlobalAdmin, _
strLoginName As String, _
<OutAttribute> ByRef bIsUserAccount As Boolean _
) As Boolean
'Usage
Dim globalAdmin As SPGlobalAdmin
Dim strLoginName As String
Dim bIsUserAccount As Boolean
Dim returnValue As Boolean
returnValue = SPUtility.IsLoginValid(globalAdmin, _
strLoginName, bIsUserAccount)
public static bool IsLoginValid(
SPGlobalAdmin globalAdmin,
string strLoginName,
out bool bIsUserAccount
)
Parameter
globalAdmin
Typ: Microsoft.SharePoint.Administration.SPGlobalAdminEin Microsoft.SharePoint.Administration.SPGlobalAdmin -Objekt, die globale Administrator-Einstellungen für den Server oder die Serverfarm darstellt.
strLoginName
Typ: System.StringEine Zeichenfolge, die den Benutzernamen enthält.
bIsUserAccount
Typ: System.Booleantrue , um anzugeben, dass das Konto ein Benutzerkonto ist; andernfalls false.
Rückgabewert
Typ: System.Boolean
Wenn der true, der Benutzername gültig ist. andernfalls false.