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

## [](#prop1)prop(propertyName: 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"} }
```