---
schema_version: "1"
id: 801c6899d1b756ae846026981e11780ac101232a964376defc1475a79c9baad5
title: nameOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-types-functions-nameof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-types-functions-nameof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 974cf6a15baa6ac8c7c873bd03e373b52a1a883cb7d2642d9c2ccd12f3168876
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# nameOf

## [](#nameof1)nameOf(t: Type): String

入力種別の名前を返します。

_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>

### [](#例)例

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

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

```DataWeave
%dw 2.0
output application/json
import * from dw::core::Types
type AArray = Array<String> {n: 1}
type AArray2 = Array<String>
---
 {
     a: nameOf(AArray),
     b: nameOf(AArray2),
     c: nameOf(String)
 }
```

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

```Json
{
   "a": "AArray",
   "b": "AArray2",
   "c": "String"
 }
```