﻿---
title: clsRateFileMasterCollection
summary: API reference for clsRateFileMasterCollection.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---
# clsRateFileMasterCollection
Enumerates published rate-file headers. 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 published rate-file headers.
- 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 |
| --- | --- | --- |
| ActiveAsOf | `Public ReadOnly Property ActiveAsOf(ByVal inAsOfDate As Date) As IEnumerable(Of clsRateFileMaster)` | Subset of rate files whose effective date is on or before the requested date and whose expiration date is null or later than that date. |
| Save | `Public Overrides Function Save() As Boolean` | Applies any pending collection edits, then persists the collection through the BOF base save routine. |
| Contains | `Public Overloads Function Contains(ByVal inRateFileSeqNum As Decimal) As Boolean` | Reports whether the active collection already contains a rate file with the supplied sequence number. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inclsRateFileMaster As clsRateFileMaster) As Boolean` | Reports whether the deleted-items list already contains the supplied rate-file object. |
| ContainsDeleted | `Public Overloads Function ContainsDeleted(ByVal inRateFileSeqNum As Decimal) As Boolean` | Reports whether the deleted-items list contains a rate file with the supplied sequence number. |
| Remove | `Public Shadows Sub Remove(ByVal inRateFileMaster As clsRateFileMaster)` | Removes the supplied rate-file object from the active collection list. |
| Remove | `Public Shadows Sub Remove(ByVal inRateFileSeqNum As Decimal)` | Removes the first active rate-file row whose sequence number matches the supplied value. |
| NewRateFileMasters | `Public Shared Function NewRateFileMasters(ByVal inDataportal As IDataPortalInfo) As clsRateFileMasterCollection` | Creates a new empty editable rate-file collection through the data portal. |
| GetRateFileMasters | `Public Shared Function GetRateFileMasters(ByVal inDataportal As IDataPortalInfo, Optional ByVal inRateFileEffDate As Date = #12:00:00 AM#, Optional ByVal inNewOutstandingCode As String = "", Optional ByVal inRiskTypeCode As String = "", Optional ByVal inNRRateFileSeqNum As Decimal = -9999999999) As clsRateFileMasterCollection` | Retrieves published rate-file headers using the key, date, or period criteria supplied by this overload. |
| GenerateSQL | `Public Sub GenerateSQL(ByRef inDataRequest As IDataRequest)` | Builds the retrieval predicate and bind parameters for the effective-date, new/outstanding, risk-type, and non-rate-file filters. |
## 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\clsRateFileMasterCollection.vb`
