# GetProperties

> Implement this method to return a PropertyCollection<TContainer> that can enumerate through all properties for the TContainer.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## GetProperties()

Implement this method to return a [PropertyCollection\<TContainer>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) that can enumerate through all properties for the `TContainer`.

```csharp
public abstract PropertyCollection<TContainer> GetProperties()
```

### Returns

| Type                                                                                              | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PropertyCollection\<T>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) | A [PropertyCollection\<TContainer>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) structure which can enumerate each property. |

## GetProperties(T)

Implement this method to return a [PropertyCollection\<TContainer>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) that can enumerate through all properties for the `TContainer`.

```csharp
public abstract PropertyCollection<TContainer> GetProperties(ref TContainer container)
```

### Parameters

**** (T): The container hosting the data.

### Returns

| Type                                                                                              | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PropertyCollection\<T>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) | A [PropertyCollection\<TContainer>](/engine/6000.6/script-reference/unity/properties/propertycollection1.md) structure which can enumerate each property. |
