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

# CollectionItem

## Overview

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

Per-file metadata entries declared by a portfolio /Collection's schema, exposed as a typed dictionary on CollectionItem.

This class provides 5 methods for working with CollectionItem objects in .NET programs.
Available methods include: `HasName`, `TryGetDateTimeValue`, `TryGetDoubleValue`, `TryGetIntValue`, `TryGetTextValue`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `AllNames`, `IsEmpty`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `IsEmpty` | `bool` | Read | Whether the item carries no schema entries. |
| `AllNames` | `ICollection` | Read | All schema-entry names declared on this item. |

## Methods

| Signature | Description |
|-----------|-------------|
| `HasName(name: string)` | True when name is declared on the item. |
| `TryGetTextValue(name: string, value: Value)` | Read a string-typed schema entry. |
| `TryGetIntValue(name: string, value: Value)` | Read an int-typed schema entry. |
| `TryGetDoubleValue(name: string, value: Value)` | Read a double-typed schema entry. |
| `TryGetDateTimeValue(name: string, value: Value)` | Read a DateTime-typed schema entry. |

## See Also

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