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.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)


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

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


  • 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


UserProfileManager class

UserProfileManager members

Microsoft.Office.Server.UserProfiles namespace