Skip to content

clsAppErrorCollection

clsAppErrorCollection retrieves and materializes filtered App_Error result sets while also exposing the total matching row count.

Purpose

  • Retrieve filtered application error rows.
  • Expose collection lookup, containment, and removal helpers.
  • Return the total row count paired with the current result page.

Context

  • Namespace: SAIF.Application.LogView
  • Assembly/package: SAIF.Application.LogView

Public members

Member Signature Purpose
Item Default Public ReadOnly Property Item(ByVal Index As Integer) As clsAppError Returns the collection item at the specified index.
ItemBySeqNum Public ReadOnly Property ItemBySeqNum(ByVal inAppErrorSeqNum As Integer) As clsAppError Returns the first collection item whose AppErrorSeqNum matches the supplied value.
MyCriteria Public ReadOnly Property MyCriteria() As Criteria Returns the attached clsAppErrorCollection.Criteria instance.
TotalCount Public ReadOnly Property TotalCount() As Integer Returns the scalar count retrieved alongside the current result page.
IsValid Public Overrides ReadOnly Property IsValid() As Boolean Returns True.
IsSavable Public ReadOnly Property IsSavable() As Boolean Returns False.
Contains Public Overloads Function Contains(ByVal inAppError As clsAppError) As Boolean Returns whether the active list contains the supplied object.
Contains Public Overloads Function Contains(ByVal inAppErrorSeqNum As Integer) As Boolean Returns whether the active list contains an item with the supplied sequence number.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inAppError As clsAppError) As Boolean Returns whether the deleted-list contains the supplied object.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inAppErrorSeqNum As Integer) As Boolean Returns whether the deleted-list contains an item matching the supplied sequence number.
Remove Public Sub Remove(ByVal inAppError As clsAppError) Removes the supplied object from the active list.
Remove Public Sub Remove(ByVal inAppErrorSeqNum As Integer) Removes the first active-list item whose AppErrorSeqNum matches the supplied value.
GetAppErrorCollection Public Shared Function GetAppErrorCollection(ByVal inDataportal As IDataPortalInfo, ByVal inErrorDate As Date) As clsAppErrorCollection Retrieves an error collection for a single date.
GetAppErrorCollection Public Shared Function GetAppErrorCollection(ByVal inCriteria As Criteria) As clsAppErrorCollection Retrieves an error collection using a supplied criteria object.
GetAppErrorCollection Public Shared Function GetAppErrorCollection(ByVal inDataportal As IDataPortalInfo, ByVal inErrorDate As Date, ByVal inMachineName As String, ByVal inEnvironment As String, ByVal inAppName As String, ByVal inUserName As String) As clsAppErrorCollection Retrieves an error collection using explicit filter values.

Behavioral notes

  • Retrieval executes SQL-005 for the row page and SQL-006 for the matching count.
  • The result page is capped at 300 rows, which aligns with BR-001.
  • MyCriteria.IsDirty is reset to False after a successful retrieve.

Constraints and usage notes

Sources

  • Application\SAIF.Application.LogView\clsAppErrorCollection.vb