VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / DeleteUser Method
The name of the user to delete.
true to delete data related to the user from the database; false to leave data related to the user in the database.


In This Topic
    DeleteUser Method
    In This Topic
    Removes a user from the membership data source.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function DeleteUser( _
       ByVal username As System.String, _
       ByVal deleteAllRelatedData As System.Boolean _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim username As System.String
    Dim deleteAllRelatedData As System.Boolean
    Dim value As System.Boolean
     
    value = instance.DeleteUser(username, deleteAllRelatedData)
    public override System.bool DeleteUser( 
       System.string username,
       System.bool deleteAllRelatedData
    )

    Parameters

    username
    The name of the user to delete.
    deleteAllRelatedData
    true to delete data related to the user from the database; false to leave data related to the user in the database.

    Return Value

    true if the user was successfully deleted; otherwise, false.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also