# Visit<TCollection, TElement>(ICollectionPropertyBag<TCollection, TElement>, ref TCollection)

> Implement this method to accept visitation for a collection of properties.

## Definition

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

## Visit\<T, U>(ICollectionPropertyBag\<T, T>, T)

```csharp
void Visit<TCollection, TElement>(ICollectionPropertyBag<TCollection, TElement> properties, ref TCollection container) where TCollection : ICollection<TElement>
```

### Parameters

**** (\[ICollectionPropertyBag\<T, T>]\(/engine/6000.5/script-reference/unity/properties/icollectionpropertybag2)): The properties of the container.**** (T): The container being visited.

### Remarks

This method is invoked by [ICollectionPropertyBagAccept\<TContainer>.Accept](/engine/6000.5/script-reference/unity/properties/icollectionpropertybagaccept1/accept.md).
