# AtsContext Methods

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [AtsContext](/reference/api/csharp/aspire.typesystem/atscontext.md)
- Kind: `Methods`
- Members: `1`

Contains all scanned types, capabilities, and metadata from ATS assembly scanning.

## GetCategory(Type)

- Name: `GetCategory(Type)`
- Returns: [AtsTypeCategory](/reference/api/csharp/aspire.typesystem/atstypecategory.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/AtsContext.cs#L110-L166)

Gets the type category for a CLR type based on scanned data. Used at runtime for marshalling.

```csharp
public sealed class AtsContext
{
    public AtsTypeCategory GetCategory(
        Type type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type`)
  The CLR type to classify.

## Returns

[AtsTypeCategory](/reference/api/csharp/aspire.typesystem/atstypecategory.md) -- The type category.
