---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/CollectionSchema
---

# CollectionSchema

## Overview

`CollectionSchema` is a class in Aspose.PDF FOSS for .NET.

Schema of a PDF Portfolio collection (PDF spec §7.11.5 Table 74).

This class provides 2 methods for working with CollectionSchema objects in .NET programs.
Available methods include: `GetCollectionField`, `HasName`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `AllFields`, `AllNames`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `AllFields` | `ICollection` | Read | All field objects. |
| `AllNames` | `ICollection` | Read | All field keys. |

## Methods

| Signature | Description |
|-----------|-------------|
| `HasName(name: string)` | Whether the schema has a field with the given key. |
| `GetCollectionField(name: string)` | Lookup the field by key. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)