Visual Guard Class Library Documentation

VGMemberShipProvider.DeleteUser Method 

Deletes a user from the repository.

public override bool DeleteUser(
   String username,
   Boolean forAllApplications
);

Parameters

username
The name of the user to delete.
forAllApplications
true if the user must be deleted even the user is a member of another application, false otherwise

Return Value

true if the user was deleted; otherwise, false.

Exceptions

Exception Type Condition
VGIsMemberOfAnotherApplicationException The user is a memeber of an another application and the forAllApplications not equal to true.

See Also

VGMemberShipProvider Class | Novalys.VisualGuard.Security.WebForm Namespace