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

# clsTaskCategoryCode

Read-only lookup entity representing one task category row within a source-system partition.

## Purpose
- Expose category metadata, default codes, and the notepad-required flag from `TASK_CATEGORY_CODE`.

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Code | `ReadOnly Property As String` | Return the category code. |
| DefaultActionCode | `ReadOnly Property As String` | Return the default action code for the category. |
| DefaultPriorityCode | `ReadOnly Property As String` | Return the default priority code for the category. |
| Description | `ReadOnly Property As String` | Return the category description. |
| IsNotePadRequired | `ReadOnly Property As Boolean` | Indicate whether the category requires notepad entry. |
| NotepadFlag | `ReadOnly Property As String` | Return the stored notepad-required flag value. |
| TaskSourceCode | `ReadOnly Property As String` | Return the source-system code that owns the category row. |
| Equals(objA, objB) | `Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean` | Compare two `clsTaskCategoryCode` instances for equality by delegating to the instance overload; returns `False` if either argument is not a `clsTaskCategoryCode`. |
| 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 `clsTaskCategoryCode`. |
| Equals(inObject) | `Overloads Function Equals(ByVal inObject As clsTaskCategoryCode) As Boolean` | Compare this instance to another `clsTaskCategoryCode` by `Code` value. |
| GetHashCode() | `Overrides Function As Integer` | Return a hash code based on the category code. |
| ToString() | `Overrides Function As String` | Return the category description. |
| GetCode(inDataPortalInfo, inTaskSourceSystem, inCode) | `Shared Function(ByVal inDataPortalInfo As iDataPortalInfo, ByVal inTaskSourceSystem As String, ByVal inCode As String) As clsTaskCategoryCode` | Retrieve one category row by source-system code and category code. |

## Behavioral notes
- Supports [BR-011](../../business-rules.md#br-011-category-notepad-requirement-is-surfaced-to-callers).
- Retrieves a single row through [SQL-006](../../sql/SQL-006-task-category-code-by-source-and-code.md).

## Constraints and usage notes
- Category identity is scoped by both `TaskSourceCode` and `Code`.

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