Skip to content

clsPremiumSizeDiscountCollection

Enumerates premium-size discount bands. 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 premium-size discount bands.
  • 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 clsPremiumSizeDiscount The collection item at the current BOF cursor position, cast to clsPremiumSizeDiscount.
Contains Public Overloads Function Contains(ByVal inclsPremiumSizeDiscount As clsPremiumSizeDiscount) As Boolean Reports whether the active collection contains a premium-size-discount row equal to the supplied object.
Contains Public Overloads Function Contains(ByVal inPremiumAmount As Decimal) As Boolean Reports whether any discount band in the collection covers the supplied premium amount.
GetPremiumSizeDiscounts Public Shared Function GetPremiumSizeDiscounts(ByVal inDataportal As IDataPortalInfo, ByVal inMarketType As Enums.MarketTypes, ByVal inEffectiveDate As Date) As clsPremiumSizeDiscountCollection Retrieves premium-size discount bands using the key, date, or period criteria supplied by this overload.
MarketType Public Property MarketType() As Enums.MarketTypes Market-type filter used when retrieving premium-size discount bands.
EffectiveDate Public Property EffectiveDate() As Date Date filter used to retrieve the premium-size discount band set in force on that date.
## Inherited public members
Member Signature Purpose
--- --- ---
First Sub First() Moves collection traversal to the first item.†
Last Sub Last() Moves collection traversal to the last item.†
Next Sub Next() Advances collection traversal to the next item.†
Previous Sub Previous() Moves collection traversal to the previous item.†
Error ReadOnly Property Error As String Surfaces collection-level broken-rule text through IDataErrorInfo.†
## 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\clsPremiumSizeDiscountCollection.vb