---
schema_version: "1"
id: d2b4cb56e583e4e8fba9c0d017832113fdec864c42bbe0f5568a65fcbc61c496
title: locationString
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-runtime-functions-locationstring.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-runtime-functions-locationstring
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2c077163f7eaa5e656e571611b1122b477a1d24e53d6cbf8c5e782c59b0d5ae4
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# locationString

## [](#locationstring1)locationString(Any): String

指定された値の位置の文字列を返します。

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

<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>value</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">任意の型の値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、DataWeave スクリプトのヘッダー内で変数 ​`a`​ を定義する行 (位置) のコンテンツを返します。

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

```DataWeave
%dw 2.0
import * from dw::Runtime
var a = 123
output application/json
---
locationString(a)
```

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

```JSON
"var a = 123"
```