Indicates the access rights that the connected user has to a security class.
<HsvSecurityAccess>.GetSecurityClassRightsForConnectedUser lSecurityClassID, plAccessRights
Long (ByVal). The ID of the security class. You can get this ID with GetSecurityClassID. | |
Long. Returns a value that indicates the connected user’s access rights to the security class. For a list of constants that represent the valid return values, see Access Rights Constants. |
This example tests whether the connected user has All access rights for the Asia security class. GetSecurityClassID assigns the security class ID to the lSecID variable, which is passed to GetSecurityClassRightsForConnectedUser. GetSecurityClassRightsForConnectedUser’s return value is then tested by the If statement: if the user has All access rights, any code placed within the If structure would be executed.