---
schema_version: "1"
id: 2a3d55e444193e6060c90e4c3390104f61b309d7e9bfbbee00633737a4f52e40
title: nameOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.6/dw-types-functions-nameof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.6/dw-types-functions-nameof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4335cdd7a25b45982a99cd641be6fefaaca5b860eaec9c00989e4ce1d116c99e
description: MuleSoft Documentation Site
release: "2.6"
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"
 }
```