EnumSecurityClasses

Returns arrays containing an application’s security class IDs and names. The arrays have a one-to-one correspondence.

Syntax

<HsvSecurityAccess>.EnumSecurityClasses pvaralSecurityClassIDs, pvarabstrSecurityClasses

Argument

Description

pvaralSecurityClassIDs

Variant array. Returns the IDs of the application’s security classes. The array is returned as a String subtype.

pvarabstrSecurityClasses

Variant array. Returns the names of the application’s security classes. The array is returned as a String subtype.

Example

This example puts the names of an application’s security classes into a ComboBox.

Dim vaSecIDs, vaSecNames, lHiBound As Long
'g_cSecurity is an HsvSecurityAccess object reference
g_cSecurity.EnumSecurityClasses vaSecIDs, vaSecNames
lHiBound = UBound(vaSecNames)
For i = LBound(vaSecNames) To lHiBound
  'cmbClasses represents the ComboBox
  cmbClasses.AddItem vaSecNames(i)
Next i