@loopback/docs
Version:
Documentation for LoopBack 4
36 lines (23 loc) • 1.23 kB
Markdown
---
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) > [@loopback/metadata](./metadata.md) > [MetadataInspector](./metadata.metadatainspector.md) > [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<T, MethodDecorator></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`