@loopback/docs
Version:
Documentation for LoopBack 4
37 lines (24 loc) • 1.35 kB
Markdown
---
lang: en
title: 'API docs: metadata.metadatainspector.getallparametermetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.metadatainspector.getallparametermetadata.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/metadata](./metadata.md) > [MetadataInspector](./metadata.metadatainspector.md) > [getAllParameterMetadata](./metadata.metadatainspector.getallparametermetadata.md)
## MetadataInspector.getAllParameterMetadata() method
Get the metadata associated with the given key for all parameters of a given method
<b>Signature:</b>
```typescript
static getAllParameterMetadata<T>(key: MetadataKey<T, ParameterDecorator>, target: Object, methodName?: string, options?: InspectionOptions): T[] | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | <code>MetadataKey<T, ParameterDecorator></code> | Metadata key |
| target | <code>Object</code> | Class for static methods or prototype for instance methods |
| methodName | <code>string</code> | Method name. If not present, default to '' to use the constructor |
| options | <code>InspectionOptions</code> | Options for inspection |
<b>Returns:</b>
`T[] | undefined`