---
lang: en
title: 'API docs: context.binding.lock'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.binding.lock.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Binding](./context.binding.md) &gt; [lock](./context.binding.lock.md)

## Binding.lock() method

Lock the binding so that it cannot be rebound

**Signature:**

```typescript
lock(): this;
```
**Returns:**

this


