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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Context](./context.context.md) &gt; [getOwnerContext](./context.context.getownercontext.md)

## Context.getOwnerContext() method

Get the owning context for a binding key

<b>Signature:</b>

```typescript
getOwnerContext(key: BindingAddress): Context | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  key | <code>BindingAddress</code> | Binding key |

<b>Returns:</b>

`Context | undefined`


