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

# clsTaskContext

Task context value object that carries optional domain-linking values alongside a task.

## Purpose
- Package the six typed context values used to associate a task with arbitrary domain entities.

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Key | `Property As clsSmartString` | Get or set the context key value. |
| Category | `Property As clsSmartString` | Get or set the context category value. |
| Code | `Property As clsSmartString` | Get or set the context code value. |
| TextValue | `Property As clsSmartString` | Get or set the context text value. |
| DateValue | `Property As clsSmartDate` | Get or set the context date value. |
| NumericValue | `Property As clsSmartDecimal` | Get or set the context numeric value. |
| Duplicate() | `Function As clsTaskContext` | Create a copy of the context object while preserving empty-value semantics. |

## Behavioral notes
- `clsTask` uses this value object during retrieve, insert, update, copy, and restore operations.

## Constraints and usage notes
- Each property stores a SAIF smart type so empty values can be represented without forcing database defaults.

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