﻿---
title: clsRatingPlanFactorCollection
summary: API reference for clsRatingPlanFactorCollection.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---
# clsRatingPlanFactorCollection
Enumerates rating-plan factor 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 rating-plan factor 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 |
| --- | --- | --- |
| AsOfDate | `Public ReadOnly Property AsOfDate() As Date` | Effective-date criterion that was used to load this collection. |
| AsOfDate | `Public ReadOnly Property AsOfDate(ByVal inAsOfDate As Date) As IEnumerable(Of clsRatingPlanFactor)` | Filters the collection to rating plan factors whose effective/expiration window covers the supplied date. |
| Contains | `Public Overloads Function Contains(ByVal inCode As String) As Boolean` | Checks the active list for a rating plan factor with the specified `Code`. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inclsRatingPlanFactor As clsRatingPlanFactor) As Boolean` | Checks the deleted-items list for an equal `clsRatingPlanFactor` instance. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inCode As String) As Boolean` | Checks the deleted-items list for a rating plan factor with the specified `Code`. |
| Remove | `Public Overloads Sub Remove(ByVal inclsRatingPlanFactor As clsRatingPlanFactor)` | Removes the specified rating plan factor object from the active list. |
| Remove | `Public Overloads Sub Remove(ByVal inCode As String)` | Removes the first active factor whose `Code` matches the supplied value. |
| GetRatingPlanFactors | `Public Shared Function GetRatingPlanFactors(ByVal inDataportal As IDataPortalInfo, ByVal inAsOfDate As Date) As clsRatingPlanFactorCollection` | Retrieves rating-plan factor rows using the key, date, or period criteria supplied by this overload. |
| GetRatingPlanFactors | `Public Shared Function GetRatingPlanFactors(ByVal inDataportal As IDataPortalInfo) As clsRatingPlanFactorCollection` | Retrieves rating-plan factor 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\clsRatingPlanFactorCollection.vb`
