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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [BindingKey](./context.bindingkey.md) &gt; [generate](./context.bindingkey.generate.md)

## BindingKey.generate() method

Generate a universally unique binding key.

Please note the format of they generated key is not specified, you must not rely on any specific formatting (e.g. UUID style).

<b>Signature:</b>

```typescript
static generate<T>(namespace?: string): BindingKey<T>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  namespace | string | Namespace for the binding |

<b>Returns:</b>

[BindingKey](./context.bindingkey.md)<!-- -->&lt;T&gt;


