# ApiReferenceExportOptions Constructors

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [ApiReferenceExportOptions](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions.md)
- Kind: `Constructors`
- Members: `1`

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

<a id="constructor"></a>
<a id="constructor-string-string-ireadonlycollection-string"></a>

## ApiReferenceExportOptions(string, string, IReadOnlyCollection<string>)

- Name: `Constructor(string, string, IReadOnlyCollection<string>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.TypeSystem/ApiReferenceExportOptions.cs#L42-L62)

Initializes a new instance of the [ApiReferenceExportOptions](/reference/api/csharp/aspire.typesystem/apireferenceexportoptions.md) class.

```csharp
public sealed class ApiReferenceExportOptions
{
    public ApiReferenceExportOptions(
        string packageName,
        string packageVersion,
        IReadOnlyCollection<string> exportingAssemblyNames)
    {
        // ...
    }
}
```

## Parameters

- `packageName` (`string`)
  The name of the package being exported.
- `packageVersion` (`string`)
  The version label to record for the package being exported.
- `exportingAssemblyNames` (`IReadOnlyCollection<string>`)
  The assemblies whose symbols this package owns and documents. Symbols outside this set are present only to complete the reference closure.

## Exceptions

- `ArgumentNullException` -- Thrown when `packageName`, `packageVersion`, or `exportingAssemblyNames` is `null`.
- `ArgumentException` -- Thrown when `packageName` or `packageVersion` is empty or consists only of white-space characters, or when `exportingAssemblyNames` is empty or contains a null, empty, or white-space assembly name.
