﻿---
title: clsStatPremiumClassCollection
summary: API reference for clsStatPremiumClassCollection.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---
# clsStatPremiumClassCollection
Enumerates statistical premium class rows. Its factory methods retrieve these rows through BOF criteria objects, and its helpers expose the keyed or effective-dated filters callers use after load.
## Purpose
- Enumerates statistical premium class rows.
- Its factory methods retrieve these rows through BOF criteria objects, and its helpers expose the keyed or effective-dated filters callers use after load.
## Context
- Namespace: `SAIF.Business.Policy.Rating`
- Assembly/package: `SAIF.Business.Policy.Rating`
## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| CurrentItem | `Public Shadows ReadOnly Property CurrentItem() As clsStatPremiumClass` | Current collection cursor item cast to `clsStatPremiumClass`. |
| Save | `Public Overrides Function Save() As Boolean` | Applies pending edits and then persists the collection through the base save pipeline. |
| Add | `Public Shadows Function Add(ByVal inStatPremiumClass As clsStatPremiumClass) As Integer` | Adds a statistical premium class to the live list and makes it the current item. |
| Contains | `Public Overloads Function Contains(ByVal inStatPremiumClass As clsStatPremiumClass) As Boolean` | True when a live item compares equal to the supplied statistical premium class. |
| Contains | `Public Overloads Function Contains(ByVal inStatClassNumber As String) As Boolean` | True when a live item has the supplied statistical class number. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inStatPremiumClass As clsStatPremiumClass) As Boolean` | True when a deleted item compares equal to the supplied statistical premium class. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inStatClassNumber As String) As Boolean` | True when a deleted item matches the supplied statistical class number. |
| Remove | `Public Sub Remove(ByVal inStatPremiumClass As clsStatPremiumClass)` | Removes the supplied statistical premium class object from the live list. |
| Remove | `Public Sub Remove(ByVal inStatClassNumber As String)` | Removes the first live item whose `StatClassNumber` matches the supplied value. |
| Where | `Public Function Where(ByVal match As Predicate(Of clsStatPremiumClassCollection)) As clsStatPremiumClassCollection` | Returns the collection subset produced by the base `ListWhere` predicate filter. |
| GetStatPremiumClassCollection | `Public Shared Function GetStatPremiumClassCollection(ByVal inDataportal As IDataPortalInfo) As clsStatPremiumClassCollection` | Retrieves statistical premium class rows using the key, date, or period criteria supplied by this overload. |
## Inherited public members
| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| First | `Sub First()` | Moves collection traversal to the first item.† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Last | `Sub Last()` | Moves collection traversal to the last item.† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Next | `Sub Next()` | Advances collection traversal to the next item.† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Previous | `Sub Previous()` | Moves collection traversal to the previous item.† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
| Error | `ReadOnly Property Error As String` | Surfaces collection-level broken-rule text through `IDataErrorInfo`.† | `SAIF.Framework.Core` — `clsBusinessCollectionBase` |
## Behavioral notes
- Rows are loaded through the BOF data portal first; the collection then applies any additional in-memory filtering or keyed selection.
## Constraints and usage notes
- Lookups that do not find a matching row return `Nothing` or an empty filtered collection, so callers should handle missing results explicitly.
> **Note:** Statements marked with `†` are derived from dependency library
> documentation via the Legends CLI. They describe inherited behavior from the
> indicated origin library and should be verified if the dependency version changes.
## Sources
- `Business\SAIF.Business.Policy.Rating\clsStatPremiumClassCollection.vb`
