Click or drag to resize

IAdminGetAllFunctionRights Method

Collection of all function rights. Each function right is a list item with an id and a name + description. The value('keyname') returns the unique string name of a function right

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
IListTextItems GetAllFunctionRights(
	EnAssocRoleType roleType
)

Parameters

roleType
Type: SuperOffice.COM.SuperOfficeDBEnAssocRoleType

Return Value

Type: IListTextItems
Examples

Get all function rights

VB
Dim soDB 
Set soDB = CreateObject("SuperOfficeDB.Database")
If not (soDB is nothing) Then

    soDB.Login "USERID", "PASSWORD"
    Set myFuncRights = soDB.Admin.GetAllFunctionRights(enRoleTypeEmployee)
    For Each Item In myFuncRights
        msg = msg & Item.Text & vbCrLf
    Next
    MsgBox msg
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also