Share via


UserProfileManager.UserExists Method

Returns a value indicating whether the user for a specified account name has a user profile.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Function UserExists ( _
    strAccountName As String _
) As Boolean
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
Dim returnValue As Boolean

returnValue = instance.UserExists(strAccountName)
public bool UserExists(
    string strAccountName
)

Parameters

  • strAccountName
    Type: System.String
    The account name for the user profile.

Return Value

Type: System.Boolean
Boolean true if the user for the specified account name has a user profile; otherwise, false.

See Also

Reference

UserProfileManager Class

UserProfileManager Members

Microsoft.Office.Server.UserProfiles Namespace