Skip to content

clsDCBSCostChargeList

API reference for clsDCBSCostChargeList.

Purpose

  • List wrapper (Inherits Generic.List(Of clsDCBSCostCharge)) that executes its own direct retrieval query from its constructor, filtered by a supplied provider location ID.
  • Bypasses the IBusinessCriteria/data-portal pattern used by the library's BOF business objects.

Context

  • Namespace: SAIF.Business.View.Provider
  • Assembly/package: SAIF.BOF.Business.View.Provider

Public members

This type declares no additional public members of its own; population happens through an internal Friend constructor used by clsProviderLocation.DCBSCostCharges.

Non-public implementation notes

  • Friend Sub New(ByVal inDPI As IDataPortalInfo, ByVal inProviderLocationID As Decimal) executes the SQL-001 query, constructs a clsDCBSCostCharge per result row, and appends each item to the inherited list.

Behavioral notes

  • This class inherits System.Collections.Generic.List(Of clsDCBSCostCharge) directly rather than any BOF collection base — it is not a clsBusinessCollection and has no IBusinessCriteria/Criteria.
  • The constructor is Friend and is the sole population path; there is no shared Get.../New... static retrieval function.

Constraints and usage notes

  • The constructor is Friend, so instances can only be constructed from within the SAIF.Business.View.Provider assembly — in practice, only by clsProviderLocation.DCBSCostCharges (New clsDCBSCostChargeList(dpi, ProviderLocationID)).

Inherited members (from List(Of clsDCBSCostCharge))

Member Signature Purpose
Count ReadOnly Property Count As Integer Returns the number of items currently in the list.
Item(index) Default Public Property Item(ByVal index As Integer) As clsDCBSCostCharge Gets or sets the item at the supplied zero-based index.
Add(item) Sub Add(ByVal item As clsDCBSCostCharge) Appends one item to the end of the list.
Remove(item) Function Remove(ByVal item As clsDCBSCostCharge) As Boolean Removes the first matching item and returns whether one was removed.
RemoveAt(index) Sub RemoveAt(ByVal index As Integer) Removes the item at the supplied zero-based index.
Clear() Sub Clear() Removes all items from the list.
Contains(item) Function Contains(ByVal item As clsDCBSCostCharge) As Boolean Returns whether the list contains the supplied item.
IndexOf(item) Function IndexOf(ByVal item As clsDCBSCostCharge) As Integer Returns the zero-based index of the first matching item, or -1 when absent.
Insert(index, item) Sub Insert(ByVal index As Integer, ByVal item As clsDCBSCostCharge) Inserts an item at the supplied zero-based index.
CopyTo(array, index) Sub CopyTo(ByVal array() As clsDCBSCostCharge, ByVal arrayIndex As Integer) Copies list items into the supplied destination array starting at arrayIndex.
GetEnumerator() Function GetEnumerator() As IEnumerator(Of clsDCBSCostCharge) Returns a generic enumerator over the list items.
ToArray() Function ToArray() As clsDCBSCostCharge() Returns a new array containing the current list items.
Sort() Sub Sort() Sorts the list in place using the default comparer for clsDCBSCostCharge.
Find(predicate) Function Find(ByVal match As Predicate(Of clsDCBSCostCharge)) As clsDCBSCostCharge Returns the first item matching the supplied predicate, or the element type's default value when none match.

Sources

  • Business\SAIF.Business.View.Provider\clsDCBSCostCharge.vb