---
title: HeaderExtensions
summary: API reference for HeaderExtensions.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# HeaderExtensions

Razor helper extension that builds the policy dropdown list used by the policy header view component from the associations on a loaded `PolicyHeader`.

## Purpose
- Produce a `SelectList` of the policies related to the current one, ordered for display ([BR-BOLMIDDLEWARE-015](../../business-rules.md#br-bolmiddleware-015-policy-dropdown-ordering)).

## Context
- Namespace: `BolMiddleware.Extensions`
- Assembly/package: `BolMiddleware`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `GetPolicyAssociationDropdown` | `static SelectList GetPolicyAssociationDropdown(this IHtmlHelper html, PolicyHeader header)` | Builds the select list of associated policies with the current policy selected, for the `policyselectvalue` control. |

## Behavioral notes
- The list content depends on associations already filtered in `PolicyHeaderService` ([BR-BOLMIDDLEWARE-013](../../business-rules.md#br-bolmiddleware-013-external-association-filtering)).

## Constraints and usage notes
- Call it only when the header has been loaded; a null header is not guarded.

## Sources
- src/BolMiddleware/Extensions/HeaderExtensions.cs
