﻿---
title: "clsAuditMessage"
summary: "API reference for clsAuditMessage."
status: draft
owner: Technical Writer
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.Bill
reference_type: package
---

# clsAuditMessage

Represents an audit message recorded against a bill, with a severity category, message text, and update metadata. Helper methods translate between persisted category codes and the `MessageCategory` enum.

## Purpose
- Stores a single audit message associated with a bill.
- Classifies the message as an error, warning, or informational item.
- Maps persisted category codes to and from the public `MessageCategory` enum.

## Context
- Namespace: `SAIF.Business.Claim.Bill`
- Assembly/package: `SAIF.Business.Claim.Bill`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| MessageCategory | `Enum MessageCategory` | Exposes the nested enum `MessageCategory`. |
| GetCategory | `Shared Function GetCategory(ByVal inCode As String) As MessageCategory` | Executes GetCategory and returns the result. |
| GetCategoryCode | `Shared Function GetCategoryCode(ByVal inCategory As MessageCategory) As String` | Executes GetCategoryCode and returns the result. |
| MessageID | `ReadOnly Property MessageID() As Decimal` | Returns the MessageID value. |
| BillID | `ReadOnly Property BillID() As Decimal` | Returns the BillID value. |
| Category | `ReadOnly Property Category() As MessageCategory` | Returns the Category value. |
| IsError | `ReadOnly Property IsError() As Boolean` | Returns the IsError value. |
| IsWarning | `ReadOnly Property IsWarning() As Boolean` | Returns the IsWarning value. |
| IsInformation | `ReadOnly Property IsInformation() As Boolean` | Returns the IsInformation value. |
| MessageCategoryCode | `ReadOnly Property MessageCategoryCode() As String` | Returns the MessageCategoryCode value. |
| MessageText | `Property MessageText() As String` | Gets or sets the MessageText value. |
| UpdateUser | `ReadOnly Property UpdateUser() As String` | Returns the UpdateUser value. |
| UpdateNumer | `ReadOnly Property UpdateNumer() As Decimal` | Returns the UpdateNumer value. |
| UpdateDate | `ReadOnly Property UpdateDate() As Date` | Returns the UpdateDate value. |
| Equals | `Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean` | Executes Equals and returns the result. |
| Equals | `Overrides Function Equals(ByVal inObject As Object) As Boolean` | Executes Equals and returns the result. |
| Equals | `Overloads Function Equals(ByVal inObject As clsAuditMessage) As Boolean` | Executes Equals and returns the result. |
| GetHashCode | `Overrides Function GetHashCode() As Integer` | Executes GetHashCode and returns the result. |
| ToString | `Overrides Function ToString() As String` | Executes ToString and returns the result. |

## Inherited public members
Members in this section are inherited from `clsBusinessBase`.
| Member | Signature | Purpose | Origin |
| --- | --- | --- | --- |
| Rules | `Property Rules As clsRulesManager` | Exposes the BOF rules manager used to evaluate object validation rules.* | `saif-framework-core — clsBusinessBase` |
| BeginEdit | `Sub BeginEdit()` | Starts an edit session for n-level undo support.* | `saif-framework-core — clsBusinessBase` |
| CancelEdit | `Sub CancelEdit()` | Cancels the active edit session and reverts pending changes.* | `saif-framework-core — clsBusinessBase` |
| ApplyEdit | `Sub ApplyEdit()` | Commits the active edit session and accepts pending changes.* | `saif-framework-core — clsBusinessBase` |
## Behavioral notes
- `clsAuditMessage` is part of the documented `SAIF.Business.Claim.Bill` public contract.
- Public members are declared in `Business\SAIF.Business.Claim.Bill\Core\clsAuditMessage.vb`.

## Constraints and usage notes
- Consumers should use the documented public members directly when integrating this type.

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Claim.Bill\Core\clsAuditMessage.vb`