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

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

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

_DataWeave 2.3.0 で導入されました。Mule 4.3 以降でサポートされます。_​

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

<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">t</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"
 }
```