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

## [](#locationstring1)locationString(value: 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"
```