---
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 |


