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

## [](#prop1)prop(String): String | Null

指定された名前のプロパティの値を返すか、プロパティが定義されていない場合は ​`null`​ を返します。

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

<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>propertyName</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">取得するプロパティ。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、​`user.timezone`​ プロパティを取得します。

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

```DataWeave
%dw 2.0
import * from dw::Runtime
output application/dw
---
{ "props" : prop("user.timezone") }
```

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

```JSON
{ props: "America/Los_Angeles" as String {class: "java.lang.String"} }
```