# ApiReferenceExportOptions

- Kind: `class`
- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Version: `13.6.0`
- Namespace: `Aspire.TypeSystem`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.TypeSystem/ApiReferenceExportOptions.cs)

Describes the package identity and ownership scope of an [IApiReferenceExporter](/reference/api/csharp/aspire.typesystem/iapireferenceexporter.md) export.

## Definition

```csharp
namespace Aspire.TypeSystem;

public sealed class ApiReferenceExportOptions
{
    // ...
}
```

## Remarks

The ATS context handed to an exporter is already filtered to the exporting assemblies, their reference closure, and the reduced member shapes needed to resolve wrappers for referenced handle types. That closure is exactly why [ApiReferenceExportOptions.ExportingAssemblyNames](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions/properties.md#exportingassemblynames) exists: it lets the exporter tell apart symbols the package owns and should document from symbols it merely needs to emit so the output is self-contained. Without it, every package would republish its dependencies' API reference.

The constructor snapshots the assembly-name collection. Exporters should compare these CLR assembly simple names using `StringComparer.OrdinalIgnoreCase`.

## Constructors

- [ApiReferenceExportOptions(string, string, IReadOnlyCollection<string>)](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions/constructors.md#constructor-string-string-ireadonlycollection-string) -- Initializes a new instance of the [ApiReferenceExportOptions](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions.md) class.

## Properties

- [ExportingAssemblyNames](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions/properties.md#exportingassemblynames) : `IReadOnlyCollection<string>` `get` -- Gets the assemblies whose symbols this package owns and documents.
- [PackageName](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions/properties.md#packagename) : `string` `get` -- Gets the name of the package being exported.
- [PackageVersion](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions/properties.md#packageversion) : `string` `get` -- Gets the version label recorded for this export, as supplied by the caller.
