---
lang: en
title: 'API docs: context.invocationcontext._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.invocationcontext._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [InvocationContext](./context.invocationcontext.md) &gt; [(constructor)](./context.invocationcontext._constructor_.md)

## InvocationContext._constructor_

Construct a new instance of `InvocationContext`

<b>Signature:</b>

```typescript
constructor(parent: Context, target: object, methodName: string, args: InvocationArgs);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  parent | <code>Context</code> | Parent context, such as the RequestContext |
|  target | <code>object</code> | Target class (for static methods) or prototype/object (for instance methods) |
|  methodName | <code>string</code> | Method name |
|  args | <code>InvocationArgs</code> | An array of arguments |


