Mobile App Development Software
Alpha TransForm - Free Trial
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • API
  • Objects
  • Server
  • Context
  • Security
  • DeleteRole Method
Parent | Child | Previous | Next
  • AddUserToRole Method
  • AddUserToRoles Method
  • AdministrativeCreateUser Method
  • AdministrativeResetPassword Method
  • ChangeEmail Method
  • ChangePassword Method
  • ChangePasswordQuestionAndAnswer Method
  • CreateRole Method
  • CreateUser Method
  • DeleteRole Method
  • DeleteUser Method
  • GeneratePassword Method
  • GetEmail Method
  • GetLastPasswordChangedDate Method
  • GetPasswordQuestion Method
  • GetRoles Method
  • GetRoleUsers Method
  • GetUser Method
  • GetUserProviderKey Method
  • GetUserRoles Method
  • GetUsers Method
  • GetUsersPaged Method
  • IsCurrentUserInRole Method
  • IsCurrentUserInRoles Method
  • IsUserInRole Method
  • IsUserInRoles Method
  • LockOutUser Method
  • Login Method
  • Logout Method
  • PasswordHasExpired Method
  • RemoveUserFromRole Method
  • RemoveUserFromRoles Method
  • ResetPassword Method
  • RoleExists Method
  • SetExpirePasswordImmediate Method
  • TestPassword Method
  • TestUsername Method
  • UnlockUser Method
  • UserExists Method
  • UserIsLockedOut Method
  • ValidateUser Method
 

DeleteRole Method

Syntax

Context.Security.DeleteRole as L (RoleName as C)

Arguments

RoleNameCharacter

The name of the role to be deleted.

Returns

resultLogical

Returns .T. if role is deleted; otherwise .F.

Description

Removes a role.

Discussion

Context.Security.DeleteRole() removes a role. A role must not have any users associated with it in order for it to be deleted. Check Context.Security.CallResult.Success before using the return value.

Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy