# PackageCollection

> A collection of PackageInfo objects that you can iterate over.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.PackageManager](/engine/6000.0/script-reference/unityeditor/packagemanager.md)
* **Assembly:** UnityEditor
* **Implements:** [IEnumerable\<PackageInfo>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

```csharp
public class PackageCollection : IEnumerable<PackageInfo>, IEnumerable
```

## Remarks

Implements IEnumerable \\\<PackageInfo\\> interface.

## Properties

| Property                                                                                       | Description                                       |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [error](/engine/6000.0/script-reference/unityeditor/packagemanager/packagecollection/error.md) | The error associated with the package collection. |
