# Accept

> Call this method to invoke ITypeVisitor.Visit with the strongly typed container type.

## Definition

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

## Accept(ITypeVisitor)

Call this method to invoke [ITypeVisitor.Visit](/engine/6000.7/script-reference/unity/properties/itypevisitor/visit.md) with the strongly typed container type.

```csharp
void Accept(ITypeVisitor visitor)
```

### Parameters

**** (\[ITypeVisitor]\(/engine/6000.7/script-reference/unity/properties/itypevisitor)): The visitor being run.

## Accept(IPropertyBagVisitor, Object)

Call this method to invoke [IPropertyBagVisitor.Visit](/engine/6000.7/script-reference/unity/properties/ipropertybagvisitor/visit.md) with the strongly typed container for the given `container` object.

```csharp
void Accept(IPropertyBagVisitor visitor, ref object container)
```

### Parameters

**** (\[IPropertyBagVisitor]\(/engine/6000.7/script-reference/unity/properties/ipropertybagvisitor)): The visitor to invoke the visit callback on.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The container being visited.
