---
schema_version: "1"
id: 37d9e770e60e25e1001869aaad687ac44f035c8f6925546cfc6be3e20b747935
title: metadataOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-types-functions-metadataof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-types-functions-metadataof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4a1f3a424a7b484fe77504c1de3ff075b2663f3c4790a4f26f6ed9614c19481b
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# metadataOf

## [](#metadataof1)metadataOf(t: Type): Object

特定の型にアタッチされたメタデータを返します。

_DataWeave バージョン 2.3.0 で導入されました。_​

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>t</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">チェックするデータ型。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`metadataOf`​ の動作を示します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::Types
type AType = String {format: "YYYY-MM-dd"}
output application/json
---
{
   a: metadataOf(AType)
}
```

#### [](#出力)出力

```Json
{
  "a": {"format": "YYYY-MM-dd"}
}
```