---
title: clsApplicationCodeCollection
summary: API reference for clsApplicationCodeCollection.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# clsApplicationCodeCollection

A collection of `clsApplicationCode` instances, used by [BR-MENU-012](../../business-rules.md#br-menu-012-application-resolution-by-virtual-path) (application resolution by path, [OP-MENU-04](../../operations/op-menu-04-resolve-application-by-path.md)) and administration screens ([OP-MENU-05](../../operations/op-menu-05-load-application-codes.md)) that need the full or active-only application list.

## Purpose
- Loads and holds the set of registered application codes retrieved via [SQL-013](../../sql/SQL-013-retrieve-all-application-codes.md) or [SQL-014](../../sql/SQL-014-retrieve-active-application-codes.md).
- Provides path-based lookup (`ItemByAppPath`) used by application resolution ([BR-MENU-012](../../business-rules.md#br-menu-012-application-resolution-by-virtual-path)).

## Context
- Namespace: `SAIF.Business.Menu`
- Assembly/package: `SAIF.Business.Menu` (`SAIF.BOF.Presentation.Web.Infragistics111` NuGet package)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GetAllApplicationCodes | `Shared Function GetAllApplicationCodes(dpi As IDataPortalInfo) As clsApplicationCodeCollection` | Loads every application code regardless of active state ([SQL-013](../../sql/SQL-013-retrieve-all-application-codes.md)). |
| GetActiveApplicationCodes | `Shared Function GetActiveApplicationCodes(dpi As IDataPortalInfo) As clsApplicationCodeCollection` | Loads only application codes whose `ACTIVE_CODE` resolves to active ([BR-MENU-013](../../business-rules.md#br-menu-013-active-only-application-filtering), [SQL-014](../../sql/SQL-014-retrieve-active-application-codes.md)). |
| ItemByAppPath | `Function ItemByAppPath(path As String) As clsApplicationCode` | Resolves the application whose `ApplicationPath` matches the given virtual path ([BR-MENU-012](../../business-rules.md#br-menu-012-application-resolution-by-virtual-path)); used by [OP-MENU-04](../../operations/op-menu-04-resolve-application-by-path.md). |

## Inherited public members

Members in this section are inherited from `clsBusinessCollectionBase` in `SAIF.Framework.Core` (delivered by the `SAIF.BOF.Framework` package). They are available on this type through inheritance.

| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| First | `Sub First()` | Moves the collection's current-item cursor to the first element (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Last | `Sub Last()` | Moves the cursor to the last element (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Next | `Sub Next()` | Advances the cursor to the next element (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Previous | `Sub Previous()` | Moves the cursor to the previous element (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| SetCurrent | `Sub SetCurrent(item As Object)` | Sets the cursor to the given item (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Traverse | `Sub Traverse(...)` | Iterates the collection, applying a traversal callback to each element (`ITraversion`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Error | `ReadOnly Property Error As String` | Aggregated validation error message for the collection (`IDataErrorInfo`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Item(columnName) | `ReadOnly Property Item(columnName As String) As String` | Per-column validation error message (`IDataErrorInfo`).† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |

## Related documentation
- [Index](../../index.md)
- [Overview](../../overview.md)
- [Architecture](../../architecture.md)
- [Operations and processes](../../operations-processes.md)
- [Business rules](../../business-rules.md)
- [Database tables](../../database-tables.md)
- [API reference](../index.md)

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `†` were retrieved from dependency library documentation via the Legends CLI RAG service. They describe inherited behavior from the indicated origin library and should be verified if the dependency version changes.

## Sources
- SAIF.Business.Menu/clsApplicationCodeCollection.vb
