# DropdownMenuAction(string, Action<DropdownMenuAction>, Func<DropdownMenuAction, Status>, object)

> Initializes a menu action with specified parameters.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## DropdownMenuAction(string, Action\<DropdownMenuAction>, Func\<DropdownMenuAction, Status>, Object)

```csharp
public DropdownMenuAction(string actionName, Action<DropdownMenuAction> actionCallback, Func<DropdownMenuAction, DropdownMenuAction.Status> actionStatusCallback, object userData = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path and name of the menu item. Use the path, delimited by forward slashes ('/'), to place the menu item within a submenu.**** (\[Action\<DropdownMenuAction>]\(https\://learn.microsoft.com/dotnet/api/system.action)): The action to execute when the menu item is selected.**** (\[Func\<DropdownMenuAction, Status>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): The function called to determine if the menu item is enabled.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to store in the **userData** property.
