# UseWithContextAttribute(params Type[])

> Initializes a new instance of the UseWithContextAttribute class with the specified context node types.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

## UseWithContextAttribute(Type\[])

```csharp
public UseWithContextAttribute(params Type[] contextTypes)
```

### Parameters

**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): An array of context node types that can contain the decorated block node.
