---
title: clsTaskPriorityCode
summary: API reference for clsTaskPriorityCode.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Tasks
reference_type: package
---

# clsTaskPriorityCode

Read-only lookup entity representing one task priority-code row.

## Purpose
- Expose a priority code, its enum mapping, and its description from `TASK_PRIORITY_CODE`.

## Context
- Namespace: `SAIF.Business.Tasks`
- Assembly/package: `SAIF.BOF.Business.Tasks`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Code | `ReadOnly Property As String` | Return the priority code value. |
| TaskPriority | `ReadOnly Property As TaskPriority` | Return the mapped `TaskPriority` enum value for the row. |
| Description | `ReadOnly Property As String` | Return the priority description. |
| Equals(objA, objB) | `Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean` | Compare two `clsTaskPriorityCode` instances for equality by delegating to the instance overload; returns `False` if either argument is not a `clsTaskPriorityCode`. |
| Equals(inObject) | `Overloads Overrides Function Equals(ByVal inObject As Object) As Boolean` | Compare this instance to an arbitrary object, delegating to the strongly typed overload when `inObject` is a `clsTaskPriorityCode`. |
| Equals(inObject) | `Overloads Function Equals(ByVal inObject As clsTaskPriorityCode) As Boolean` | Compare this instance to another `clsTaskPriorityCode` by `Code` value. |
| GetHashCode() | `Overrides Function As Integer` | Return a hash code based on the code value. |
| ToString() | `Overrides Function As String` | Return the priority description. |
| GetCode(inDataPortalInfo, inCode) | `Shared Function(ByVal inDataPortalInfo As iDataPortalInfo, ByVal inCode As String) As clsTaskPriorityCode` | Retrieve one priority-code row by code. |

## Behavioral notes
- Retrieves a single row through [SQL-009](../../sql/SQL-009-task-priority-code-by-code.md).

## Constraints and usage notes
- The `TaskPriority` enum is supplied by a dependency library rather than this assembly.

## Sources
- `Business\SAIF.Business.Tasks\clsTaskPriorityCode.vb`
