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

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

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [MetadataInspector](./metadata.metadatainspector.md) &gt; [getAllMethodMetadata](./metadata.metadatainspector.getallmethodmetadata.md)

## MetadataInspector.getAllMethodMetadata() method

Get the metadata associated with the given key for all methods of the target class or prototype

<b>Signature:</b>

```typescript
static getAllMethodMetadata<T>(key: MetadataKey<T, MethodDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  key | <code>MetadataKey&lt;T, MethodDecorator&gt;</code> | Metadata key |
|  target | <code>Object</code> | Class for static methods or prototype for instance methods |
|  options | <code>InspectionOptions</code> | Options for inspection |

<b>Returns:</b>

`MetadataMap<T> | undefined`


