---
title: GroupAssociationExtensions
summary: API reference for GroupAssociationExtensions.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Group
reference_type: package
---

# GroupAssociationExtensions

Provides LINQ-style filters over group collections for type, expiration, and plan-code selection.

## Purpose
- Provides LINQ-style filters over group collections for type, expiration, and plan-code selection.

## Context
- Namespace: `SAIF.Business.Policy.Group`
- Assembly/package: `SAIF.Business.Policy.Group`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GroupType | `Public Function GroupType(ByVal Target As IEnumerable(Of clsGroupAssociation), ByVal inGroupType As clsGroupAssociation.GroupTypes) As IEnumerable(Of clsGroupAssociation)` | Returns only the groups whose typed classification matches the requested group type ([BR-003](../../../../../business-rules.md#br-003-group-type-derives-from-stored-code)). |
| NotExpired | `Public Function NotExpired(ByVal Target As IEnumerable(Of clsGroupAssociation), ByVal inAsOfDate As Date) As IEnumerable(Of clsGroupAssociation)` | Filters groups to rows that are not expired as of the supplied date ([BR-002](../../../../../business-rules.md#br-002-group-expiration-is-date-effective)). |
| SalesPlan | `Public Function SalesPlan(ByVal Target As IEnumerable(Of clsGroupAssociation), ByVal inSalesPlanCode As String) As IEnumerable(Of clsGroupAssociation)` | Filters groups by plan code using the library's exclusion-based SalesPlan rule ([BR-004](../../../../../business-rules.md#br-004-salesplan-excludes-listed-plan-codes)). |
| SalesPlan | `Public Function SalesPlan(ByVal Target As IEnumerable(Of clsGroupAssociation), ByVal ParamArray inSalesPlanCode() As String) As IEnumerable(Of clsGroupAssociation)` | Filters groups by plan code using the library's exclusion-based SalesPlan rule ([BR-004](../../../../../business-rules.md#br-004-salesplan-excludes-listed-plan-codes)). |


## Behavioral notes
- This type follows the BOF business-object or collection lifecycle exposed by its public surface.*

## Constraints and usage notes
- These methods operate on in-memory collections; callers must retrieve data before applying the extension filters.

> **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.Policy.Group\\clsGroupAssociationCollection.vb`

